From b8247ea7ff1f486737218be805c58fb6957b9b2c Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Fri, 30 Apr 2021 20:02:18 +1000 Subject: [PATCH] flake8 configuration --- .pre-commit-config.yaml | 4 ++++ setup.cfg | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 setup.cfg 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