Configure mutmut mutation testing framework, eliminate Parso AST syntax
errors in appctl engine, permit dynamic mutant injection on strict
Pydantic models, and prune redundant dead code.
- Tooling & Configuration:
- Add setup.cfg defining authoritative [mutmut] runner configuration and file copy targets.
- Update .gitignore to exclude mutants/ and .mutmut-cache/ directories.
- AST Parser Compatibility:
- scripts/appctl_engine.py: rewrite parenthesized multi-context statements with
'as' targets to nested with blocks (# noqa: SIM117) to prevent Parso 0.8.7
grammar syntax errors during AST mutation.
- Pydantic v2 Invariants & Dead Code Removal:
- scripts/appctl_contracts.py: configure ignored_types=(dict,) on StrictModel and
OperationRequest to permit unannotated class-level mutant injection; replace
unreachable OPERATION_PARAMS_MAP fallback defaults with direct mapping access.
- scripts/core_manifest.py: configure ignored_types=(dict,) on strict manifest
models; prune redundant branch patterns in classify_ref() down to single fallback.
- scripts/appctl_auth.py: remove redundant target == "core" check in enforce_rbac().
Rationale: Mutmut failed to parse scripts/appctl_engine.py and threw PydanticUserError
when injecting unannotated mutant dictionaries into strict models with extra="forbid".
Resolving these AST and contract barriers allows mutation test runners to analyze
core control plane scripts hermetically.
55 lines
885 B
Plaintext
55 lines
885 B
Plaintext
# Environments & Secrets
|
|
.env
|
|
.env.*
|
|
secrets.txt
|
|
backup.zip
|
|
.envrc
|
|
.direnv
|
|
.venv
|
|
|
|
# SSL / ACME Certificates & Keys
|
|
config/letsencrypt/*
|
|
**/*.key
|
|
**/*.crt
|
|
**/*.pem
|
|
**/*.bak
|
|
|
|
# Authelia, LLDAP, Stalwart & SnappyMail Data
|
|
config/authelia/db.sqlite3
|
|
config/authelia/emails.txt
|
|
config/authelia/users.yml
|
|
config/authelia/users.yaml
|
|
config/lldap/data/
|
|
config/stalwart/data/
|
|
config/stalwart/etc/*
|
|
!config/stalwart/etc/.gitkeep
|
|
config/snappymail/data/
|
|
|
|
|
|
# Diun Databases
|
|
config/diun/diun.db
|
|
|
|
# Homepage Logs & Generated Runtime State
|
|
config/homepage/logs/
|
|
config/homepage/services.yaml
|
|
config/homepage/custom.css
|
|
config/homepage/custom.js
|
|
|
|
# OS & Editor Metadata
|
|
.DS_Store
|
|
Thumbs.db
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Python & Testing Caches
|
|
__pycache__/
|
|
*.pyc
|
|
.pytest_cache/
|
|
.ruff_cache/
|
|
mutants/
|
|
.mutmut-cache/
|
|
|
|
# Local Bootstrap & Operational Scripts
|
|
scripts/bootstrap_lldap_users.py
|
|
scripts/bootstrap_*.py
|