.PHONY: style format quality csv bump # Bump the VERSION file and commit it. Do this in your PR; when the PR merges # into main, CI creates the v tag and deploys to the production Space. # Usage: make bump VERSION=1.2.3 bump: @test -n "$(VERSION)" || { echo "usage: make bump VERSION=X.Y.Z"; exit 1; } @echo "$(VERSION)" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$$' || { echo "VERSION must be MAJOR.MINOR.PATCH"; exit 1; } @git fetch --tags --quiet origin 2>/dev/null || true @! git rev-parse -q --verify "refs/tags/v$(VERSION)" >/dev/null || { echo "tag v$(VERSION) already exists"; exit 1; } @echo "$(VERSION)" > VERSION git add VERSION git commit -m "Bump version to $(VERSION)" @echo "VERSION is now $(VERSION). Merge to main to release v$(VERSION)." style: python -m black --line-length 119 . python -m isort . ruff check --fix . quality: python -m black --check --line-length 119 . python -m isort --check-only . ruff check . csv: python src/results_to_csv.py