-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (38 loc) · 1.45 KB
/
Copy pathMakefile
File metadata and controls
54 lines (38 loc) · 1.45 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
# SPDX-FileCopyrightText: 2026 Greg Brandt <brandt.greg@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
.PHONY: install test test-coverage lint fix typecheck format build publish lock check license-check bump help
help: ## Display this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install all dependencies including extras and dev group
uv sync --extra all --group dev
build: ## Build the package
uv build
publish: ## Publish the package to PyPI
uv publish
test: ## Run tests in parallel
uv run pytest -n auto
test-coverage: ## Run tests with coverage report
uv run pytest -n auto --cov=. --cov-report=term
lint: ## Run ruff linter
uv run ruff check .
typecheck: ## Run type checker
uv run ty check
format: ## Format code with ruff
uv run ruff format .
bump: ## Bump version: make bump part=patch|minor|major
uv version --bump $(part)
lock: ## Update the lockfile
uv lock
fix: ## Run ruff linter and apply fixes
uv run ruff format .
uv run ruff check --fix .
check: lint typecheck format test license-check ## Run all checks (lint, typecheck, format, test)
license-check: ## Check that all files have REUSE license headers
uv run reuse lint
license: ## Annotate files with REUSE license headers
uv run reuse annotate \
--license Apache-2.0 \
--copyright "Greg Brandt <brandt.greg@gmail.com>" \
--skip-unrecognized \
--recursive .