myst/web/pyproject.toml
ZTatman 18897362df fix(web): security hardening, rename cleanup, and error pages
- Move TOKEN_ENCRYPTION_KEY from DB to env var (no longer stored alongside encrypted data)
- Add one-time setup token printed to server logs to prevent anonymous setup takeover
- Setup token persists until first successful login, allowing config retries
- Remove setup_complete flag in favor of app_settings nullability check
- Fix stale Myst→Firebreak references in crypto.py, dev.sh, pyproject.toml
- Add dynamic OAuth callback URL in setup wizard
- Fix global heading color override to use foreground instead of danger
- Add aria-label to brand link for accessibility
- Remove forced redirect to /settings after first login
- Remove reconfigure link from landing page
- Add styled error page with HTML/JSON content negotiation
- Add 401 guard dog easter egg

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-05 00:27:51 -04:00

44 lines
914 B
TOML

[tool.ruff]
target-version = "py313"
line-length = 100
[project]
name = "firebreak-web"
version = "0.1.0"
description = "Firebreak: FastAPI + HTMX web interface for managing Forgejo repositories"
requires-python = ">=3.13"
dependencies = [
"aiofiles>=24.1.0",
"asyncpg>=0.31.0",
"cryptography>=46.0.0",
"fastapi>=0.136.0",
"httpx>=0.28.1",
"jinja2>=3.1.0",
"jinja2-fragments>=0.1.0",
"pydantic-settings>=2.13.1",
"pydantic[email]>=2.13.2",
"python-multipart>=0.0.18",
"sqlalchemy[asyncio]>=2.0.49",
]
[dependency-groups]
dev = [
"djlint>=1.36.1",
"mypy>=1.19.0",
"ruff>=0.11.0",
"uvicorn[standard]>=0.44.0",
]
[tool.mypy]
python_version = "3.13"
files = ["app"]
check_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
strict_optional = true
[tool.djlint]
indent = 2
profile = "jinja"
max_line_length = 100
extension = "html"