Chore: Configure Flake8 linter 91/68391/8
authorThanh Ha <zxiiro@gmail.com>
Sat, 31 Jul 2021 11:47:00 +0000 (07:47 -0400)
committerThanh Ha <zxiiro@gmail.com>
Sat, 9 Oct 2021 14:55:02 +0000 (10:55 -0400)
This adds Flake8 to pre-commit and removes the unused config in tox.ini.
Not sure why Flake8 was disabled but config in tox.ini suggests that
it was there at one point.

Change-Id: I93c9a6e4562f957f75f28a3842ae29eb8df67fb9
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
.pre-commit-config.yaml
tox.ini

index 8c95cbf..c186a3c 100644 (file)
@@ -27,3 +27,9 @@ repos:
     rev: 5.9.3
     hooks:
       - id: isort
+
+  - repo: https://gitlab.com/pycqa/flake8
+    rev: 3.9.2
+    hooks:
+      - id: flake8
+        args: ["--max-line-length=120"]
diff --git a/tox.ini b/tox.ini
index d833547..3e93c09 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -11,14 +11,6 @@ minversion = 3.7
 skip_missing_interpreters = true
 ignore_basepython_conflict = true
 
-[flake8]
-max-complexity = 22
-max-line-length = 120
-ignore = E203, W503, C901, E402, B011
-
-[pep8]
-max-line-length = 120
-
 [pytest]
 markers = datafiles
 addopts = -p no:warnings