forked from ChelseaKR/ceqa-preflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 998 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (33 loc) · 998 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.DEFAULT_GOAL := help
.PHONY: help install format lint typecheck test security audit schemas verify build audit-sources
help:
@uv run ceqa-preflight --help
install:
uv sync --all-groups
format:
uv run ruff format .
lint:
uv run ruff format --check .
uv run ruff check .
typecheck:
uv run mypy src
test:
uv run pytest --cov=ceqa_preflight --cov-report=term-missing
security:
uv run bandit -q -r src
audit:
@attempt=1; while [ $$attempt -le 3 ]; do \
uv run pip-audit && exit 0; \
echo "pip-audit attempt $$attempt failed; retrying" >&2; \
attempt=$$((attempt + 1)); \
sleep 3; \
done; exit 1
schemas:
uv run python -m ceqa_preflight.schema_export
# Maintainer-only: checks that rule source citation URLs still resolve. Not part of `verify` —
# it makes real network requests, which the shipped product and CI gate deliberately never do.
audit-sources:
uv run python3 scripts/check_rule_sources.py
verify: lint typecheck test security audit
build: verify
uv build