From 15b73b890cc75300d079ba20c30eb1d0ce3b3e45 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 22 Sep 2026 08:02:18 -0700 Subject: [PATCH] Chore: Ban cross-app imports of documents.tests (#14224) Nothing outside the documents app imports documents.tests any more. Ruff now bans the module everywhere except src/documents/tests, where in-app imports remain fine. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 114013d39..3aba1dcf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -247,6 +247,10 @@ per-file-ignores."docker/wait-for-redis.py" = [ per-file-ignores."src/documents/models.py" = [ "SIM115", ] +per-file-ignores."src/documents/tests/*.py" = [ + "TID251", +] +flake8-tidy-imports.banned-api."documents.tests".msg = "Shared test infrastructure lives in src/paperless_testing/." isort.force-single-line = true [tool.codespell]