-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (40 loc) · 1.56 KB
/
Copy pathjustfile
File metadata and controls
49 lines (40 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
default: install lint test
# Install/refresh deps: upgrade the lockfile, sync the yaml extra + the lint group.
install:
uv lock --upgrade
uv sync --all-extras --frozen --group lint
# Autofix lint: eof-fixer, ruff format, ruff check --fix, ty type-check.
lint:
uv run eof-fixer .
uv run ruff format
uv run ruff check --fix
uv run ty check
# CI lint (no autofix) — same checks as `lint` without mutating the tree.
lint-ci:
uv run eof-fixer . --check
uv run ruff format --check
uv run ruff check --no-fix
uv run ty check
uv run python planning/index.py --check
# Print the generated planning change/decision index to stdout.
index:
uv run python planning/index.py
# Validate planning bundles/decisions; prints "planning: OK" or violations.
check-planning:
uv run python planning/index.py --check
# Run pytest with NO coverage (targeted runs won't trip the gate). Passes args through.
test *args:
uv run --no-sync pytest {{ args }}
# The gated full run: 100% line coverage required. CI runs this.
test-ci:
uv run --no-sync pytest --cov=. --cov-report term-missing --cov-report xml --cov-fail-under=100
# Branch-coverage run (diagnostic; line coverage is the enforced gate, not branch).
test-branch:
uv run --no-sync pytest --cov=. --cov-branch --cov-fail-under=100
# Build + publish to PyPI. Version comes from the git tag ($GITHUB_REF_NAME); no pyproject bump.
# Auth via PyPI Trusted Publishing (OIDC); uv publish auto-detects the CI id-token.
publish:
rm -rf dist
uv version $GITHUB_REF_NAME
uv build
uv publish