forked from ChelseaKR/permit-bearings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (44 loc) · 1.89 KB
/
Copy pathMakefile
File metadata and controls
53 lines (44 loc) · 1.89 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
50
51
52
53
.PHONY: install verify lint type test security bundle-check copy-check evidence-export-check
install:
uv sync --frozen --python 3.12 --group dev
lint:
.venv/bin/ruff check src tests
.venv/bin/ruff format --check src tests
type:
.venv/bin/mypy
test:
.venv/bin/pytest
security:
.venv/bin/bandit -q -r src
@set -eu; \
runtime_requirements=$$(mktemp "$${TMPDIR:-/tmp}/permit-pathways-runtime.XXXXXX"); \
trap 'rm -f "$$runtime_requirements"' EXIT; \
UV_CACHE_DIR=/tmp/permit-pathways-uv-cache uv export --frozen --no-dev \
--no-emit-project --format requirements-txt \
--output-file "$$runtime_requirements" >/dev/null; \
.venv/bin/pip-audit --requirement "$$runtime_requirements" \
--no-deps --disable-pip
bundle-check:
.venv/bin/python scripts/build_demo_bundle.py --check
PYTHONPATH=src .venv/bin/python -m permit_pathways.harness
copy-check:
node scripts/check_applicant_copy.mjs
evidence-export-check:
@set -eu; \
evidence_directory=$$(mktemp -d "$${TMPDIR:-/tmp}/permit-pathways-evidence-export.XXXXXX"); \
trap 'rm -rf "$$evidence_directory"' EXIT; \
repository_commit_sha=$$(git rev-parse HEAD); \
archive="$$evidence_directory/public-synthetic-evidence.zip"; \
restored="$$evidence_directory/restored"; \
PYTHONPATH=src .venv/bin/python -m permit_pathways.evidence_export_cli build \
--output "$$archive" \
--freeze-id public-synthetic-evidence-freeze-2026-08-09 \
--frozen-on 2026-08-09 \
--repository-commit-sha "$$repository_commit_sha" >/dev/null; \
PYTHONPATH=src .venv/bin/python -m permit_pathways.evidence_export_cli verify \
--archive "$$archive" >/dev/null; \
PYTHONPATH=src .venv/bin/python -m permit_pathways.evidence_export_cli restore \
--archive "$$archive" \
--destination "$$restored" >/dev/null; \
printf '%s\n' 'evidence export round trip: pass'
verify: install lint type test security bundle-check copy-check evidence-export-check