From cf9333da4e811f4a83a3ed7b67a3746eb3c0ed42 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Sat, 31 Jul 2021 07:47:00 -0400 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 6 ++++++ tox.ini | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) 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 -- 2.16.6