diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-07 14:11:48 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-15 21:14:28 +0100 |
commit | 01ee9180948d98455459440150622d53e0456987 (patch) | |
tree | 0b55afdc11335ce133076945f19541c2106cf8f3 | |
parent | 44764d07cf5b16d248b992a031499d9026312f45 (diff) | |
download | pylint-git-01ee9180948d98455459440150622d53e0456987.tar.gz |
Add flake8 to the pre-commit configuration
-rw-r--r-- | .flake8 | 7 | ||||
-rw-r--r-- | .pre-commit-config.yaml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.flake8 b/.flake8 new file mode 100644 index 000000000..13e17c35f --- /dev/null +++ b/.flake8 @@ -0,0 +1,7 @@ +[flake8] +ignore = + E203, W503, # Incompatible with black see https://github.com/ambv/black/issues/315 + E501, # Lot of offending line right now + +max-line-length=88 +max-complexity=39 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95032a46c..7c041f12e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,11 @@ repos: rev: 5.7.0 hooks: - id: isort +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.4 + hooks: + - id: flake8 + exclude: *fixtures - repo: https://github.com/ambv/black rev: 20.8b1 hooks: |