-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (47 loc) · 1.35 KB
/
Copy pathMakefile
File metadata and controls
66 lines (47 loc) · 1.35 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
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: install lint format typecheck test test-unit test-integration test-web test-e2e test-cov smoke check run clean build build-clean scorecard audit-harness
install:
pip install -e ".[dev]"
pre-commit install
lint:
ruff check src/ tests/
format:
ruff format src/ tests/
typecheck:
mypy src/
test:
pytest -v
test-unit:
pytest tests/unit/ -v
test-integration:
pytest tests/integration/ -v -m integration
test-web:
pytest tests/web/ -v -m web
test-e2e:
pytest tests/e2e/ -v -m e2e
test-cov:
pytest --cov=cad_dxf_agent --cov-report=term-missing -v
smoke:
python scripts/smoke_test.py
scorecard:
pytest tests/eval/ -v --tb=short
security:
bandit -r src/ -ll
pip-audit --local
# Vendored audit-harness gates. `verify` is blocking (hash-pin tamper check);
# escape-scan/bias/arch are advisory locally (leading `-` ignores their exit).
audit-harness:
bash scripts/audit-harness verify
-bash scripts/audit-harness escape-scan --staged
-bash scripts/audit-harness bias
-bash scripts/audit-harness arch
check: lint format typecheck test smoke
@echo "All checks passed."
run:
python -m cad_dxf_agent.app
build:
python scripts/build.py
build-clean:
python scripts/build.py --clean
clean:
rm -rf dist/ build/ *.egg-info .coverage htmlcov/ .mypy_cache/ .ruff_cache/ .pytest_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true