This commit is contained in:
9qeklajc
2026-08-06 22:58:44 +02:00
parent de62a27fb6
commit bc5c56ecc3
2 changed files with 53 additions and 44 deletions
+27 -25
View File
@@ -8,39 +8,41 @@
.todo
# Local configuration and secrets
.env
.env.*
routstr_secret.key
**/.env
**/.env.*
**/routstr_secret.key
# Python environments, caches, and build artifacts
.venv
__pycache__
*.py[cod]
.pytest_cache
.mypy_cache
.ruff_cache
.coverage
htmlcov
*.egg-info
build
dist
**/.venv
**/__pycache__
**/*.py[cod]
**/.pytest_cache
**/.mypy_cache
**/.ruff_cache
**/.coverage
**/htmlcov
**/*.egg-info
**/build
**/dist
# Runtime state must never be baked into the image
logs
logs.*
*.log
.wallet
.cashu
*.db
*.db-*
*.sqlite3
keys
proof_backups
relay-data
**/*.log
**/.wallet*
**/.cashu
**/*.db
**/*.db-*
**/*.sqlite3
**/*.sqlite3-*
**/keys
**/proof_backups
**/relay-data
# The UI is built by its own service and mounted at runtime
ui
# The UI output is built by its own service and mounted at runtime
ui_out
ui/.next
ui/out
**/node_modules
# Compose and local development files
+26 -19
View File
@@ -1,6 +1,5 @@
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[2]
@@ -12,27 +11,35 @@ def test_backend_docker_context_excludes_generated_and_runtime_state() -> None:
}
required_patterns = {
"__pycache__",
"*.py[cod]",
".pytest_cache",
".mypy_cache",
".ruff_cache",
".coverage",
"*.egg-info",
"build",
"dist",
"**/.env",
"**/.env.*",
"**/routstr_secret.key",
"**/.venv",
"**/__pycache__",
"**/*.py[cod]",
"**/.pytest_cache",
"**/.mypy_cache",
"**/.ruff_cache",
"**/.coverage",
"**/htmlcov",
"**/*.egg-info",
"**/build",
"**/dist",
"logs",
"logs.*",
".wallet",
".cashu",
"*.db",
"*.db-*",
"*.sqlite3",
"keys",
"proof_backups",
"relay-data",
"ui",
"**/*.log",
"**/.wallet*",
"**/.cashu",
"**/*.db",
"**/*.db-*",
"**/*.sqlite3",
"**/*.sqlite3-*",
"**/keys",
"**/proof_backups",
"**/relay-data",
"ui_out",
"ui/.next",
"ui/out",
}
assert required_patterns <= patterns, (