-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (31 loc) · 878 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (31 loc) · 878 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
37
38
39
40
41
42
43
44
45
46
SHELL := /bin/bash
.PHONY: setup install dev lint test run clean-setup clean-lint all clean
setup: dev
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg
install:
uv sync --no-default-groups
dev:
uv sync --all-groups
lint:
uv run pre-commit run --all-files
test:
uv run pytest tests/* --cov-branch --cov=codecov --cov-report=term-missing
report:
uv run pytest tests --cov-branch --cov=codecov --cov-report=term-missing --cov-report=json:/tmp/report.json
build:
uv run python -m build
test-publish:
uv run python -m twine upload --repository testpypi dist/*
publish:
uv run python -m twine upload dist/*
run:
uv run python run.py
clean-setup:
uv run pre-commit uninstall --hook-type commit-msg
uv run pre-commit uninstall
clean-lint:
uv run pre-commit clean
uv run pre-commit gc
all: setup lint
clean: clean-lint clean-setup