Skip to content

Commit

Permalink
style: streamline flake8 options, and ignore long lines again
Browse files Browse the repository at this point in the history
We used to ignore E501, and not ignoring it spews lots of errors
that I want to continue hiding unless we really plan to fix them.
  • Loading branch information
joanise committed Apr 18, 2024
1 parent 55214e7 commit 16751a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# NOTE: This is actually ignored by flake8 in pre-commit for some
# reason but it will get used in editors. How to make flake8 read it?
# Who knows? flake8 is a mystery.

[flake8]
max-line-length = 120
extend-ignore = E203,E704
max-line-length = 88
extend-ignore = E203,E501,E704
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ repos:
stages: [commit]
- repo: https://github.com/pycqa/flake8
# do flake8 last to avoid duplicate reports
rev: 5.0.4
rev: 7.0.0
hooks:
- id: flake8
args: ["--max-line-length=120", "--extend-ignore=E203,E704"]

0 comments on commit 16751a6

Please sign in to comment.