Skip to content

Commit

Permalink
CI Correctly define configuration for flake8 (scikit-learn#25017)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored Nov 24, 2022
1 parent 3eb00d8 commit 845b19f
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,28 @@ max-line-length = 88
target-version = ['py37']
# Default flake8 3.5 ignored flags
ignore=
E24, # check ignored by default in flake8. Meaning unclear.
E121, # continuation line under-indented
E123, # closing bracket does not match indentation
E126, # continuation line over-indented for hanging indent
E203, # space before : (needed for how black formats slicing)
E226, # missing whitespace around arithmetic operator
E704, # multiple statements on one line (def)
E731, # do not assign a lambda expression, use a def
E741, # do not use variables named 'l', 'O', or 'I'
W503, # line break before binary operator
W504 # line break after binary operator
# check ignored by default in flake8. Meaning unclear.
E24,
# continuation line under-indented
E121,
# closing bracket does not match indentation
E123,
# continuation line over-indented for hanging indent
E126,
# space before : (needed for how black formats slicing)
E203,
# missing whitespace around arithmetic operator
E226,
# multiple statements on one line (def)
E704,
# do not assign a lambda expression, use a def
E731,
# do not use variables named 'l', 'O', or 'I'
E741,
# line break before binary operator
W503,
# line break after binary operator
W504
exclude=
.git,
__pycache__,
Expand Down

0 comments on commit 845b19f

Please sign in to comment.