Skip to content

Commit

Permalink
fix: line-length checks are now a bit more tolerant using Bugbear only
Browse files Browse the repository at this point in the history
  • Loading branch information
jenstroeger committed Dec 4, 2022
1 parent 0a81e4b commit 2e8adfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Unfortunately, flake8 does not support pyproject.toml configuration.
# https://github.com/PyCQA/flake8/issues/234
#
# Disabling the following noise:
# E501: line too long, managed better by Bugbear's B950
[flake8]
ignore =
ignore = E501
per-file-ignores =
max-line-length = 120
show-source = true
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ ignore_missing_imports = true
fail-under = 10.0
disable = [
"fixme",
"line-too-long", # Replaced by Flake8 Bugbear B950 check.
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
Expand Down

0 comments on commit 2e8adfc

Please sign in to comment.