forked from ChelseaKR/tods-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 1.13 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
# make verify reproduces the full merge-blocking gate set locally, byte-for-
# byte with CI (CICD-27). Run it before opening a PR; the release workflows
# re-run it at the tagged commit before anything publishes (REL-14/15).
.PHONY: verify lint format typecheck test docs-check i18n-check audit secrets
verify: lint format typecheck test docs-check i18n-check audit secrets
@echo "make verify: all gates passed."
lint:
ruff check src tests scripts
format:
ruff format --check src tests scripts
typecheck:
mypy
test:
pytest --cov --cov-report=term-missing --cov-fail-under=90
docs-check:
python scripts/generate_rules_doc.py --check
i18n-check:
python scripts/check_i18n.py
# Dependency vulnerability audit (CQ-11 / SEC-11). --strict also fails on any
# dependency pip-audit could not evaluate, rather than silently skipping it.
audit:
pip-audit --strict
# Secret scan over the working tree + history (SEC-17/18). Requires the
# gitleaks binary (see https://github.com/gitleaks/gitleaks#installing); the
# CI job installs it explicitly rather than via the license-gated Action.
secrets:
gitleaks detect --source . --redact --exit-code 1