Flatten Repo Quality
Scope
Use this skill for static analysis, formatting, type checks, secret scanning, commit-time gates, and distribution artifact validation before release.
Rules
- •Keep
.pre-commit-config.yamlauthoritative for local checks. - •Use Ruff for lint + formatting (
ruff,ruff-formathooks). - •Use
tyfor type checking (src/andtests/). - •Keep
detect-secretsbaseline up to date in.secrets.baseline. - •Keep strict pytest and coverage options in
pyproject.toml. - •For release readiness, ensure
build+twineare available in dev dependencies. - •Validate package artifacts with
python -m buildandpython -m twine check dist/*. - •Keep release instructions aligned between
README.mdandRELEASING.md.
Validation
Run:
- •
uv run pre-commit run --all-files - •
uv run ruff check . - •
uv run ruff format --check . - •
uv run ty check src/ tests/ - •
uv run pytest - •
uv run --with build python -m build - •
uv run --with twine python -m twine check dist/*