-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref: upgrade linters to flake8 5.x #1610
Conversation
8b0b539
to
d493950
Compare
@@ -1,16 +1,17 @@ | |||
[flake8] | |||
ignore = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extend-ignore is better than ignore, it preserves the default ignore
E501, // Handled by black (Line too long) | ||
W503, // Handled by black (Line break occured before a binary operator) | ||
E402, // Sometimes not possible due to execution order (Module level import is not at top of file) | ||
E731, // I don't care (Do not assign a lambda expression, use a def) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ini comments are either #
or ;
not //
-- these are actually being interpreted as ignore codes https://flake8.pycqa.org/en/latest/user/configuration.html
N812, // I don't care (Lowercase imported as non-lowercase by pep8-naming) | ||
N804 // is a worse version of and conflicts with B902 (first argument of a classmethod should be named cls) | ||
max-line-length = 80 | ||
select = N,B,C,E,F,W,T4,B9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't necessary -- flake8 enables the codes of all extension by default
N804 // is a worse version of and conflicts with B902 (first argument of a classmethod should be named cls) | ||
max-line-length = 80 | ||
select = N,B,C,E,F,W,T4,B9 | ||
exclude=checkouts,lol*,.tox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extend-exclude is better as it preserves the default exclude list
d493950
to
1eb48d1
Compare
1eb48d1
to
74e0932
Compare
Thanks for this update @asottile-sentry ! |
noqa removal was automated via yesqa