-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 795 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 795 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
.PHONY: help test test-watch lint format type-check clean
help: ## Show this help message
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
test: ## Run tests with coverage reporting
pytest --cov=derailed --cov-report=html --cov-report=term-missing $(filter-out $@,$(MAKECMDGOALS))
test-watch: ## Run tests on file changes
ptw .
lint: ## Run linting
ruff check
tox:
uv tool install tox --with tox-uv
tox
format: ## Format code
ruff check --select I --fix
ruff format
type-check: ## Run type checking
mypy
clean: ## Clean up generated files
rm -rf __pycache__ .pytest_cache .coverage htmlcov
rm -rf *.egg-info build dist
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete