flake8 config does not support inline comments
... although before flake v6 they do *appear* to work
This commit is contained in:
parent
1687a31042
commit
cf070ff359
48
.flake8
48
.flake8
|
@ -1,21 +1,37 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
max_line_length = 88
|
max_line_length = 88
|
||||||
ignore =
|
ignore =
|
||||||
C408 # Unnecessary dict/list/tuple call - rewrite as a literal
|
# Unnecessary dict/list/tuple call - rewrite as a literal
|
||||||
E203 # whitespace before ':' - doesn't work well with black
|
C408
|
||||||
E225 # missing whitespace around operator - let black worry about that
|
# whitespace before ':' - doesn't work well with black
|
||||||
E262 # inline comment should start with '# '
|
E203
|
||||||
E265 # block comment should start with '# '
|
# missing whitespace around operator - let black worry about that
|
||||||
E266 # too many leading '#' for block comment
|
E225
|
||||||
E302 # expected 2 blank lines, found 1
|
# inline comment should start with '# '
|
||||||
E402 # module level import not at top of file
|
E262
|
||||||
E501 # line too long - let black handle that
|
# block comment should start with '# '
|
||||||
E711 # comparison to None should be
|
E265
|
||||||
E712 # comparison to False/True should be
|
# too many leading '#' for block comment
|
||||||
E741 # ambiguous variable name
|
E266
|
||||||
F405 # may be undefined, or defined from star imports
|
# expected 2 blank lines, found 1
|
||||||
W291 # trailing
|
E302
|
||||||
W503 # line break occurred before a binary operator - let black worry about that
|
# module level import not at top of file
|
||||||
W504 # line break occurred adter a binary operator - let black worry about that
|
E402
|
||||||
|
# line too long - let black handle that
|
||||||
|
E501
|
||||||
|
# comparison to None should be
|
||||||
|
E711
|
||||||
|
# comparison to False/True should be
|
||||||
|
E712
|
||||||
|
# ambiguous variable name
|
||||||
|
E741
|
||||||
|
# may be undefined, or defined from star imports
|
||||||
|
F405
|
||||||
|
# trailing
|
||||||
|
W291
|
||||||
|
# line break occurred before a binary operator - let black worry about that
|
||||||
|
W503
|
||||||
|
# line break occurred adter a binary operator - let black worry about that
|
||||||
|
W504
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
.cmake-format.py:F821
|
.cmake-format.py:F821
|
Loading…
Reference in New Issue