-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 762 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 762 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
.PHONY: install lint format typecheck test verify preprocess train clean
install: ## Install runtime + dev dependencies (editable)
uv pip install -e ".[dev]"
lint: ## Lint with ruff
ruff check src/
format: ## Auto-format with ruff
ruff format src/
typecheck: ## Static type-check (strict)
mypy src/ --strict
test: ## Run unit tests with coverage
pytest
verify: lint typecheck test ## Run the full local quality gate
preprocess: ## Build the cleaned dataset
python src/data_loader.py
train: ## Train the model and log to MLflow
python src/train_model.py
clean: ## Remove caches
find . -type d -name __pycache__ -prune -exec rm -rf {} +
rm -rf .ruff_cache .mypy_cache .pytest_cache