From: Thanh Ha Date: Sat, 31 Jul 2021 11:47:00 +0000 (-0400) Subject: Chore: Configure Flake8 linter X-Git-Tag: v0.35.11~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F68391%2F8;p=releng%2Flftools.git Chore: Configure Flake8 linter 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 --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c95cbf6..c186a3c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 d8335470..3e93c09d 100644 --- 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