Audit entries written only inside the caller's transaction, database throttle counters that refuse to run inside a transaction that could roll back, and a database session store with the user key in its own column, end_sessions and idle and absolute limits. Ticket 1.3. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sk72AxLwQnYttF6VFSxQLt
44 lines
991 B
TOML
44 lines
991 B
TOML
[project]
|
|
name = "self-service-portal"
|
|
version = "0.1.0"
|
|
description = "Self-service portal for directory users"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13,<3.14"
|
|
dependencies = [
|
|
"django>=5.2,<5.3",
|
|
"gunicorn>=23.0",
|
|
"whitenoise>=6.9",
|
|
"tzdata",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8",
|
|
"pytest-django>=4.9",
|
|
"pytest-env>=1.1",
|
|
"ruff>=0.8",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
DJANGO_SETTINGS_MODULE = "portal.config.settings"
|
|
testpaths = ["portal/tests"]
|
|
filterwarnings = ["ignore:No directory at:UserWarning"]
|
|
env = [
|
|
"SECRET_KEY=test-only-secret-key-not-for-use-0123456789abcdef",
|
|
"ALLOWED_HOSTS=testserver,localhost",
|
|
"DATA_DIR=.",
|
|
"DEBUG=false",
|
|
"LOG_LEVEL=INFO",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py313"
|
|
extend-exclude = ["**/migrations", "_bmad", "_bmad-output", ".agents", "context-resources"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "B", "UP", "S"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"portal/tests/*" = ["S"]
|