From fc70a4785c56dd1bb7c125d0dcb0156a5b663225 Mon Sep 17 00:00:00 2001 From: Eugene Mikhantyev Date: Sun, 29 Mar 2026 13:07:39 +0100 Subject: [PATCH] chore: add Flake8 linting config with baseline ignore rules Adds .flake8 config and registers the flake8 pre-commit hook scoped to python/ at rev 7.3.0. Baseline ignore rules (E501, F401, F541, F841, E722, E402, E741, F811, F821, F824, E231) suppress existing violations so the hook passes cleanly on the current codebase. Co-Authored-By: Claude Opus 4.6 --- .flake8 | 24 ++++++++++++++++++++++++ .pre-commit-config.yaml | 7 +++++++ 2 files changed, 31 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..00211c0 --- /dev/null +++ b/.flake8 @@ -0,0 +1,24 @@ +[flake8] +max-line-length = 100 +extend-ignore = + E203, + W503, + E501, + F401, + F541, + F841, + F811, + F821, + F824, + E722, + E402, + E741, + E231 +exclude = + .git, + __pycache__, + dist, + build, + .eggs, + .venv, + node_modules diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e34355f..f0600a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,3 +28,10 @@ repos: hooks: - id: prettier exclude: ^(dist/|package-lock\.json|\.venv/|python/) + + - repo: https://github.com/pycqa/flake8 + rev: "7.3.0" + hooks: + - id: flake8 + files: ^python/ + args: [--config=.flake8]