qa
Pre-commit sanity check — compile all Python modules, run the pytest suite, and verify core imports before committing changes to the betting engine. Use after editing tippmix_system/ or service/ and b
SKILL.md.claude/skills/qa/SKILL.md
GitHubQA Gate
Catch breakage before it ships. Run this after touching the engine and before committing.
Steps
- Compile the core modules (fast syntax gate):
python -m py_compile tippmix_system/*.py service/*.py - Imports resolve (catches missing symbols the compiler misses):
python -c "from tippmix_system.cli import main; from tippmix_system.recommendations import generate_recommendations, generate_combinations; from tippmix_system.evaluation import evaluate_run; from tippmix_system.analysis import analyze_match; print('imports OK')" - Tests:
python -m pytest tests/ -q - Report pass/fail honestly. If tests fail, show the failing output — do not claim green.
- For UI changes, also run the TS build:
cd ui && npm run build
Notes
- Core logic is stdlib-only (no numpy); a failed import usually means a typo or a removed/renamed symbol, not a missing dependency.
- Never commit secrets —
data/.auth_secretanddata/avatars/are gitignored; the commit-guard hook will block known sensitive paths if staged.