Skip to content

Commit

Permalink
Merge pull request #9936 from andrew-aitchison/master
Browse files Browse the repository at this point in the history
flake8 config does not support inline comments
  • Loading branch information
rouault committed May 15, 2024
2 parents 9b9d3e3 + cf070ff commit 0367605
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
[flake8]
max_line_length = 88
ignore =
C408 # Unnecessary dict/list/tuple call - rewrite as a literal
E203 # whitespace before ':' - doesn't work well with black
E225 # missing whitespace around operator - let black worry about that
E262 # inline comment should start with '# '
E265 # block comment should start with '# '
E266 # too many leading '#' for block comment
E302 # expected 2 blank lines, found 1
E402 # module level import not at top of file
E501 # line too long - let black handle that
E711 # comparison to None should be
E712 # comparison to False/True should be
E741 # ambiguous variable name
F405 # may be undefined, or defined from star imports
W291 # trailing
W503 # line break occurred before a binary operator - let black worry about that
W504 # line break occurred adter a binary operator - let black worry about that
# Unnecessary dict/list/tuple call - rewrite as a literal
C408
# whitespace before ':' - doesn't work well with black
E203
# missing whitespace around operator - let black worry about that
E225
# inline comment should start with '# '
E262
# block comment should start with '# '
E265
# too many leading '#' for block comment
E266
# expected 2 blank lines, found 1
E302
# module level import not at top of file
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 =
.cmake-format.py:F821

0 comments on commit 0367605

Please sign in to comment.