Skip to content

Commit

Permalink
setup.cfg/pre-commit-config: Add flake8 hook and config
Browse files Browse the repository at this point in the history
Now that things are fixed up, add flake8. No fancy plugins, just
base flake8 for now.
  • Loading branch information
awelzel committed Jan 17, 2023
1 parent 592a8c2 commit 77bcde4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ repos:
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/pycqa/flake8
rev: 5.0.4 # 6.0.0 requires Python 3.8
hooks:
- id: flake8

exclude: doc/ext/sphinxarg
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
[bdist_wheel]
universal = 1

[flake8]
max_line_length = 100
# E203: whitespace before ':' (black / flake8 disagreement)
# W503: line break before binary operator (black / flake8 disagreement)
ignore=E203,W503
# E402: module level import not at top of file
# F405: may be undefined, or defined from star imports
# F403: from .manager import *' used; unable to detect undefined names
per-file-ignores = */__init__.py: F405,F403,E402

0 comments on commit 77bcde4

Please sign in to comment.