Skip to content

linting failures with flake8 v3.8 #2878

Closed

Description

@peterjc

Yesterday flake8 v3.8.0 and v3.8.1 were released

https://flake8.pycqa.org/en/3.8.1/release-notes/3.8.1.html
https://flake8.pycqa.org/en/3.8.1/release-notes/3.8.0.html

This updated Pyflakes to use 2.2.x which adds F501 - F509 and F521,

https://gitlab.com/pycqa/flake8/-/merge_requests/417/diffs

And it now uses pycodestyle 2.6.x https://pycodestyle.pycqa.org/en/latest/developer.html#changes

Our code now fails on TravisCI as seen already on pull request #2866 with:

  • E741 ambiguous variable name 'l' (lots of cases)
  • F507 '...' % ... has 3 placeholder(s) but 2 substitution(s)

We probably need to ignore E741 for now, and fix or whitelist the single F507 case?

Activity

  1. peterjc commented on May 12, 2020

    @peterjc
    MemberAuthor

    The F507 is a bug in an exception message, present in 1.76 too.

    "row %d has incorrect size (%d, expected %d)" % (m, i)

  2. self-assigned this
    on May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions