-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 817 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 817 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
35
36
.PHONY: help install test test-v build format lint clean
PYTHON := .venv/bin/python
UV := uv
help:
@echo "install install dependencies via uv"
@echo "test run the test suite"
@echo "test-v run the test suite (verbose)"
@echo "build build distribution packages"
@echo "format format code with black"
@echo "lint check formatting (black --check)"
@echo "clean remove build artifacts and caches"
install:
$(UV) sync
test:
$(PYTHON) -m pytest test/
test-v:
$(PYTHON) -m pytest test/ -v
build:
$(UV) build
format:
$(PYTHON) -m black src/ test/
lint:
$(PYTHON) -m black --check src/ test/
clean:
rm -rf dist/ .pytest_cache/
find . -path ./.venv -prune -o -name "__pycache__" -type d -print -exec rm -rf {} +
find . -path ./.venv -prune -o -name "*.pyc" -print -delete