diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 341a396..5d61d64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,7 @@ repos: rev: 5.6.4 hooks: - id: isort + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.4 + hooks: + - id: flake8 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..d21adf9 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,15 @@ +[flake8] +exclude = .git,.tox,venv,bin,lib,deps,build +doctests = True +# To work with Black +# E501: line too long +# W503: Line break occurred before a binary operator +# E203: Whitespace before ':' +# D202 No blank lines allowed after function docstring +# W504 line break after binary operator +ignore = + E501, + W503, + E203, + D202, + W504