-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (44 loc) · 1.66 KB
/
Makefile
File metadata and controls
61 lines (44 loc) · 1.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: help install install-dev test lint format type-check docs clean build
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
install: ## Install package in production mode
pip install -e .
install-dev: ## Install package with development dependencies
pip install -e .
pip install black ruff mypy pylint pytest pytest-cov pre-commit sphinx sphinx-rtd-theme
test: ## Run tests
pytest
test-cov: ## Run tests with coverage
pytest --cov=undatum --cov-report=html --cov-report=term
lint: ## Run linters
ruff check undatum/
pylint undatum/
format: ## Format code with black
black undatum/ tests/
format-check: ## Check code formatting without making changes
black --check undatum/ tests/
type-check: ## Run type checker
mypy undatum/
docs: ## Build documentation
cd docs && make html
docs-serve: ## Serve documentation locally (requires sphinx-autobuild)
cd docs && sphinx-autobuild . _build/html
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf htmlcov/
rm -rf docs/_build/
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name "*.pyc" -delete
build: ## Build distribution packages
python setup.py sdist bdist_wheel
pre-commit-install: ## Install pre-commit hooks
pre-commit install
pre-commit-run: ## Run pre-commit hooks on all files
pre-commit run --all-files
check-all: format-check lint type-check test ## Run all checks
ci: check-all ## Run all CI checks (alias for check-all)