From 6a99d8ef4b813236e2e81b4cd7395b3db86decff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Mon, 10 Jun 2024 15:33:51 +0000 Subject: [PATCH] Enable flake8 pre-commit --- .pre-commit-config.yaml | 10 ++++++---- tox.ini | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a49c9d0..e741c861 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,10 +20,12 @@ repos: hooks: - id: black - # - repo: https://github.com/pycqa/flake8 - # rev: 7.0.0 - # hooks: - # - id: flake8 + - repo: https://github.com/pycqa/flake8 + rev: 7.0.0 + hooks: + - id: flake8 + additional_dependencies: + - flake8-import-order # - repo: https://github.com/pre-commit/mirrors-mypy # rev: v1.9.0 diff --git a/tox.ini b/tox.ini index e8ea3d1c..e353deb0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [flake8] max-line-length = 9999 import-order-style = pep8 -exclude = .git,.vscode,libraries,build.py,.github +exclude = .git,.vscode extend-ignore = I202 + E203 per-file-ignores = */__init__.py: F401 tests/test_imports.py: F401