-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 946 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (22 loc) · 946 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
# Ouroboros — common development commands
# Usage: make test, make lint, make health
.PHONY: test lint health clean
# Run smoke tests (fast, no external deps needed at runtime)
test:
python3 -m pytest tests/ -q --tb=short
# Run smoke tests with verbose output
test-v:
python3 -m pytest tests/ -v --tb=long
# Run codebase health check (requires ouroboros importable)
health:
python3 -c "from ouroboros.review import collect_sections, compute_complexity_metrics, format_metrics; \
import pathlib, json; \
s, stats = collect_sections(pathlib.Path('.'), pathlib.Path('.')); \
m = compute_complexity_metrics(s); \
print(format_metrics(m)); \
print(json.dumps(stats, indent=2, default=str))"
# Clean Python cache files
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true