hermes-trace/Justfile

37 lines
852 B
Makefile

# hermes-trace — developer workflow
#
# just verify — run all quality gates (lint + format-check + typecheck + test)
# just lint — ruff check
# just fmt — auto-format with ruff
# just fmt-check— check formatting without changing files
# just typecheck— pyright type check
# just test — run all tests
uv := "uv"
# Create/sync virtual environment (with dev dependencies)
venv:
{{uv}} sync --frozen --dev
# Run all quality gates
verify: venv lint fmt-check typecheck test
# Lint with ruff
lint:
{{uv}} run ruff check .
# Auto-format with ruff
fmt:
{{uv}} run ruff format .
# Check formatting without changing
fmt-check:
{{uv}} run ruff format --check .
# Type check with pyright
typecheck:
{{uv}} run pyright
# Run all tests
test:
{{uv}} run python -m unittest discover -s tests -v