Add ruff config and document Postgres test run

- Lint rules (pycodestyle, pyflakes, bugbear, isort, pyupgrade, bandit)
  in pyproject.toml; ruff pinned in requirements-dev
- Full suite verified against PostgreSQL (embedded pgserver), plus a
  production-like check: collectstatic with manifest storage, fresh
  migrations, ensure_admin and all main pages with DEBUG off

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Kyle Dammann
2026-10-30 22:01:49 +01:00
co-authored by Claude Opus 5.5
parent f96cbe965e
commit aec254518c
3 changed files with 17 additions and 0 deletions
+12
View File
@@ -7,3 +7,15 @@ requires-python = ">=3.12"
DJANGO_SETTINGS_MODULE = "config.settings_test"
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
line-length = 120
extend-exclude = ["*/migrations/*"]
[tool.ruff.lint]
select = ["E", "F", "W", "B", "I", "UP", "S"]
ignore = ["E501", "S311"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S104", "S105", "S106"]
"recipes/schema_org.py" = ["S110"] # malformed third-party HTML must never break an import