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 e1cbb3f commit 0696254
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 6.0.0
hooks:
- id: flake8

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

[flake8]
max_line_length = 100
# E402: module level import not at top of file
# E203: whitespace before ':' (black / flake8 disagreement)
# W503: line break before binary operator (black / flake8 disagreement)
ignore=E203,W503
# Ignore star import in __init__.py
# 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

0 comments on commit 0696254

Please sign in to comment.