From 9202bd6720e86c9d9a4f4c235958d97e0852319f Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Wed, 22 Jul 2026 17:12:14 -0400 Subject: [PATCH] TST: Drop pytest-flake8, incompatible with pytest 9 The pytest_collect_file hookspec dropped the deprecated `path` argument in pytest 9, but pytest-flake8 still declares it in its hookimpl. Since plugins are loaded from entry points before collection begins, pytest aborts at startup with a pluggy PluginValidationError, taking the whole test suite down with it. This affects pytest-flake8 1.3.0, its latest release; the project is unmaintained, so there is no fixed version to upgrade to. The plugin was not doing anything for us in any case. Its checks are gated behind an opt-in --flake8 flag which we never passed, so it added zero collected items. flake8 itself is unaffected and still runs in the pre-commit hooks (with the full plugin set, enforced on GHA by the pre-commit workflow) and as a sanity check step in the tests workflow. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01F1Zkaexz4SbsuUsCbrykrS --- requirements-test.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index 7bb576f..9955dec 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,2 @@ pytest pytest-cov -pytest-flake8