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
+4
View File
@@ -53,6 +53,10 @@ no JS build step: plain forms with small progressive enhancements in `static/js/
```bash
# Local (Windows dev box: venv lives at C:\Users\kyled\.venvs\kochbuch due to path-length issues)
python -m pytest # tests (SQLite)
python -m ruff check . # lint (config in pyproject.toml)
# Postgres without Docker (dev box): pip install pgserver; start it, then
# POSTGRES_HOST=127.0.0.1 POSTGRES_PORT=<port> POSTGRES_USER=postgres POSTGRES_DB=postgres python -m pytest
# (the Windows pgserver build lacks tz data: copy tzdata/zoneinfo to pginstall/share/postgresql/timezone)
python scripts/dev_server.py # http://localhost:8000, [email protected]
SECRET_KEY=dev python manage.py makemigrations