-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 771 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 771 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
28
29
30
31
.PHONY: install lint format format-check test check clean
# Install all dependencies (runtime + dev)
install:
pip install -r requirements.txt -r requirements-dev.txt
# Run ruff linter
lint:
ruff check .
# Auto-format code
format:
ruff format .
# Check formatting without modifying files
format-check:
ruff format --check .
# Run test suite
test:
python -m pytest tests/ -v
# Run all checks (CI equivalent)
check: lint format-check test
# Remove caches and build artifacts
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .ruff_cache -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.py[cod]" -delete 2>/dev/null || true