forked from ChelseaKR/perimeter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.08 KB
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 1.08 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
.PHONY: verify sync lint format typecheck test audit site site-offline acquire
# CI / `make verify` body: the two MUST stay byte-for-byte identical.
# See CONTRIBUTING.md and .github/workflows/ci.yml.
verify: sync lint format typecheck test audit
sync:
uv sync --frozen
lint:
uv run ruff check .
format:
uv run ruff format --check .
typecheck:
uv run mypy --strict src
test:
uv run pytest -n auto --cov=src --cov-branch --cov-report=xml --cov-fail-under=90
audit:
uv run pip-audit
# Build from locally acquired files. data/raw/ is never in git and never in CI.
site:
uv run python -m perimeter.cli \
--perimeters data/raw/frap_perimeters.json \
--dins data/raw/dins_postfire.json \
--out site
# The same pipeline over committed fixtures: runs anywhere, output flagged is_fixture.
site-offline:
uv run python -m perimeter.cli --fixture \
--perimeters fixtures/frap_perimeters.sample.json \
--dins fixtures/dins_postfire.sample.json \
--out build/site-offline
# Network. Run by hand, never from a build. See PROVENANCE.md.
acquire:
uv run python -m perimeter.acquire --out data/raw