Skip to content

CI Correctly define configuration for flake8 #25017

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

Merged
merged 1 commit into from
Nov 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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