-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
50 lines (36 loc) · 1.33 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
.DEFAULT_GOAL := help
.PHONY: help lint format typecheck test test-cov clean docs-serve docs-build
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
lint: ## Run linter
uv run ruff check src/ tests/
format: ## Format code
uv run ruff format src/ tests/
typecheck: ## Run type checker
uv run pyright src/
test: ## Run tests
uv run pytest
test-cov: ## Run tests with coverage
uv run pytest --cov=dflockd_client --cov-report=term-missing
clean: ## Remove build artifacts and caches
rm -rf build/ dist/ *.egg-info .mypy_cache .pytest_cache .ruff_cache htmlcov/ site/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
docs-serve: ## Serve documentation locally
uv run --group docs mkdocs serve
docs-build: ## Build documentation site
uv run --group docs mkdocs build --strict
build-publish-nobump: ## Build and publish, no bump
uv build
uv publish
build-publish: ## Build new minor version and publish to pypi
uv version --bump minor
uv build
uv publish
build-publish-patch: ## Build new version, bump patchlevel, and publish to pypi
uv version --bump patch
uv build
uv publish
build-publish-major: ## Build new major version and publish to pypi
uv version --bump major
uv build
uv publish