Files
site_aegisone/.pre-commit-config.yaml
T
angel bd048ea23d v1.5.4: test infrastructure + bug fixes + CI/CD + deploy gate
- 6 new test files: route discovery, strict permissions, role switch,
  CRUD operations, 500 error protection
- permission_config.py: central permission definitions for all 110+ routes
- Bug fixes: is_active checkbox in users_edit, int(id) 500 crash,
  missing validation in users_create/users_delete
- Pre-commit hooks: lint + static routing tests
- GitHub Actions CI: full pytest suite on push
- Deploy gate: pytest runs before deploy, aborts on failure
- All 3 deploy scripts: --skip-tests flag support
2026-05-22 20:45:27 +03:00

16 lines
530 B
YAML

repos:
- repo: local
hooks:
- id: pytest-routes
name: pytest (route definition check)
description: Verify all routes are defined and covered in permission_config
entry: pytest py_service/tests/test_routes_defined.py py_service/tests/test_00_discover_routes.py -v --no-header -q
language: system
pass_filenames: false
always_run: true
- id: ruff
name: ruff linter
entry: ruff check py_service/
language: system
pass_filenames: false