summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--setup.cfg5
2 files changed, 9 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 674c995..5204633 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,3 +9,7 @@ repos:
rev: 19.10b0
hooks:
- id: black
+- repo: https://gitlab.com/pycqa/flake8
+ rev: 3.7.9
+ hooks:
+ - id: flake8
diff --git a/setup.cfg b/setup.cfg
index 006215e..168a038 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -34,3 +34,8 @@ norecursedirs =
venv
.env
timeout = 120
+
+[flake8]
+max-line-length = 88
+# Ignore long line errors, black takes care of them.
+extend-ignore = E501