-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 737 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 737 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
-include .env
SHELL = /bin/bash
PACKAGE_VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null || echo 0.1.0)
.PHONY: clean_dist clean_tests clean_mypy clean_ruff clean sync test test_w_coverage package mypy ruff
clean_dist:
rm -rf dist *.egg-info
clean_tests:
rm -rf .pytest_cache .coverage htmlcov unit_test_report.xml
py3clean .
clean_mypy:
rm -rf .mypy_cache
clean_ruff:
rm -rf .ruff_cache
clean: clean_dist clean_mypy clean_tests clean_ruff
sync:
uv sync --extra dev
test:
uv run pytest -v -p no:cacheprovider test
test_w_coverage:
uv run pytest -v --cov-report html --cov=tsp test/
package: clean_dist
uv build --format wheel
mypy:
uv run mypy .
ruff:
uv run ruff format .
uv run ruff check . --fix