-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 879 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 879 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
32
33
34
help:
@echo Developer commands for pauldot
@echo
@grep -E '^[ .a-zA-Z_-]+:.*? ## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*? ## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@echo
install: ## Install requirements ready for development
uv sync
format: ## Format the code
uv run ruff format .
uv run ruff check --fix .
lint: ## Run the linter
uv run ruff check .
test: ## Run tests
uv run pytest
clean: ## Clear cache files and build outputs
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf dist/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
release: ## Build a new version and release it
uv build && uv publish
docs-serve: ## Serve docs locally with live reload
uv run --group docs mkdocs serve
docs-build: ## Build the docs site into site/
uv run --group docs mkdocs build