-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (39 loc) · 1.98 KB
/
Makefile
File metadata and controls
59 lines (39 loc) · 1.98 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
.PHONY: install dev test test-smoke test-core lint format hygiene hygiene-strict hygiene-debt hygiene-debt-init todo-guard doctor-env doctor-env-strict command-audit quality-baseline quality-strict build publish clean
install:
pip install -e .
dev:
pip install -e ".[dev]"
test:
pytest tests/
test-smoke:
pytest -q tests/test_exit_codes.py tests/test_health_gate.py tests/test_surface_counts.py tests/test_competitor_site_data.py --maxfail=1
test-core:
pytest -q tests/test_basic.py tests/test_exit_codes.py tests/test_health_gate.py tests/test_runtime.py tests/test_rules.py tests/test_surface_counts.py tests/test_competitor_site_data.py --maxfail=3
lint:
ruff check --no-cache src/ tests/
format:
ruff format --no-cache src/ tests/
hygiene:
python dev/repo_hygiene.py --focus-path src --focus-path tests --focus-path dev --focus-path pyproject.toml --focus-path Makefile
hygiene-strict:
python dev/repo_hygiene.py --focus-path src --focus-path tests --focus-path dev --focus-path pyproject.toml --focus-path Makefile --threshold-scope focus --max-untracked 50 --max-unstaged 30 --max-staged 30 --max-conflicts 0
hygiene-debt-init:
python dev/repo_hygiene.py --debt-baseline reports/hygiene_debt_baseline.json --write-debt-baseline --show 0
hygiene-debt:
python dev/repo_hygiene.py --debt-baseline reports/hygiene_debt_baseline.json --require-debt-baseline --max-new-untracked 0 --max-new-unstaged 0 --max-new-staged 0 --max-conflicts 0 --show 0
todo-guard:
python dev/todo_guard.py
doctor-env:
python dev/env_doctor.py --no-require-venv
doctor-env-strict:
python dev/env_doctor.py --require-venv
command-audit:
python dev/command_audit.py --output reports/command_audit_latest.md --max-output-lines 25
quality-baseline: hygiene-strict hygiene-debt todo-guard doctor-env lint test-smoke
quality-strict: hygiene-strict hygiene-debt todo-guard doctor-env-strict lint test-core
build:
python -m build
publish: build
twine upload dist/*
clean:
rm -rf build/ dist/ *.egg-info src/*.egg-info