Skip to content
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

Relax the linter to only fail on pyflakes error #291

Merged
merged 1 commit into from
Oct 27, 2023
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
21 changes: 5 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
[tool.nbqa.addopts]
# Ignoring a bunch of errors:
# E201 whitespace after '('
# E221 multiple spaces before operator
# E222 multiple spaces after operator
# E225 missing whitespace around operator
# E228 missing whitespace around modulo operator
# E231 missing whitespace after ','
# E251 unexpected spaces around keyword / parameter equals
# E302 expected 2 blank lines
# E303 too many blank lines
# E305 expected 2 blank lines after class or function definition
# E401 multiple imports on one line
# E402 module level import not at top of file
# E501 line too long
# E741 ambiguous variable name
# Ignoring all pycodestyle (E) errors, they were just too painful to fix.
# Also ignoring mccabe (C) errors, they don't look useful to catch.
# Effectively only catching pyflakes (F) errors, like `F401: module imported but unused`
# All the list of flake8 rules available at pycodestyle
flake8 = [
"--extend-ignore=E201,E221,E222,E225,E228,E231,E251,E302,E303,E305,E401,E402,E501,E741"
"--extend-ignore=E,C"
]

[tool.nbqa.exclude]
Expand Down