forked from joi-lab/ouroboros
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 823 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 823 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
# 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 compute_complexity_metrics; \
import pathlib, json; \
m = compute_complexity_metrics(pathlib.Path('.')); \
print(json.dumps(m, 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