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
31 lines (24 loc) · 883 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 883 Bytes
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
.PHONY: install verify lint type test security bundle-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
verify: install lint type test security bundle-check