# Excludes any *_venv/ too: a virtualenv created inside the repo ships hundreds of # third-party .md files, and mdformat --check fails the gate on those rather than # on anything we wrote. MDFILES := $(shell find . -name "*.md" -not -path "./.venv/*" -not -path "./*_venv/*" -not -path "./build/*" -not -path "./.pytest_cache/*") # run checks on all files for the repo quality: @echo "Running quality checks" ruff check ruff format --check python -m mdformat --check $(MDFILES) mypy --check-untyped-defs python scripts/sync_provenance.py --check # style the code according to accepted standards for the repo # Note: We run `ruff format` twice. Once to fix long lines before lint check # and again to fix any formatting issues introduced by ruff check --fix style: @echo "Running style fixes" ruff format ruff check --fix ruff format --silent python -m mdformat $(MDFILES) python scripts/sync_provenance.py