-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 721 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (22 loc) · 721 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
.PHONY: install install-hooks lint typecheck test check build clean man
lint:
ruff check src/
ruff format --check src/
typecheck:
mypy src/
install:
uv sync --dev
install-hooks: install
uv run pre-commit install
test:
uv run pytest
check: lint typecheck test
build:
uv build
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage
man:
@command -v pandoc >/dev/null 2>&1 || { echo "Error: pandoc is not installed."; echo "Install with: brew install pandoc (macOS) or apt-get install pandoc (Linux)"; exit 1; }
pandoc --standalone --to=man docs/man/pkgd.1.md -o docs/man/pkgd.1
mandoc -Tlint docs/man/pkgd.1
@echo "OK: docs/man/pkgd.1 regenerated and lint-clean"