-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 1.24 KB
/
Makefile
File metadata and controls
47 lines (34 loc) · 1.24 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: help install install-dev test test-integration clean format lint type-check docs
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install the package in development mode
pip install -e .
install-dev: ## Install with development dependencies
pip install -e ".[dev]"
test: ## Run tests
pytest
test-integration: ## Run integration tests
pytest -m integration tests/integration
test-cov: ## Run tests with coverage
pytest --cov=pyflow --cov-report=html --cov-report=term
clean: ## Clean up build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
format: ## Format code with black
black src/ tests/
lint: ## Lint code with flake8
flake8 src/ tests/
type-check: ## Type check with mypy
mypy src/
docs: ## Build documentation
cd docs && make html
docs-serve: ## Serve documentation locally
cd docs && python -m http.server 8000 --directory _build/html
all-checks: format lint type-check test ## Run all checks