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.
This commit is contained in:
Trenton H
2026-09-22 08:02:18 -07:00
committed by GitHub
parent 02d355061f
commit 15b73b890c
+4
View File
@@ -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]