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>
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"]
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