utils/CLAUDE.md
Krzysztof kuhy Rudnicki d3f01c36e1 ci: run gate_stamp's tests (scripts/tests) in shared-gates CI
They were only reachable through test_changed.sh. Add them to the
shared-gates workflow (with pre-commit, and apt PyYAML for the
/usr/bin/python3 hook-id helper) and to CLAUDE.md's test command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PAhbNszs5JKdtnD4uBi3xp
2026-10-17 16:46:59 +02:00

1.0 KiB

utils

Monorepo of shared gates and libraries (dep_freshness, file_length, md_naming, repo_contract, coverage_gaps, crdt-sync, gatelock, freedays, sickdays, earned_time, music_theory, ...). Python packages with a root-level <pkg>/tests run with PYTHONPATH=.; subprojects with their own pyproject.toml run via scripts/run_subproject_tests.sh <dir>. scripts/check_repo_contract.sh is the REAL shared gate (not a shim): never overwrite it with repo_contract/templates/check_repo_contract.shim.sh.

Commands

  • run: n/a: collection of gates and libraries, no single entry point
  • test: PYTHONPATH=. python -m pytest -q coverage_gaps/tests dep_freshness/tests file_length/tests home_paths/tests md_naming/tests repo_contract/tests scripts/tests
  • test-changed: scripts/test_changed.sh
  • lint: ruff check coverage_gaps repo_contract
  • coverage: PYTHONPATH=. python -m pytest -q repo_contract/tests --cov=repo_contract --cov-branch --cov-report=xml --cov-fail-under=100
  • coverage-gaps: coverage-gaps coverage.xml