-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 989 Bytes
/
Makefile
File metadata and controls
50 lines (41 loc) · 989 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
47
48
49
50
# Simple makefile to help me remember uv tasks
# Targets are:
# - lint : run ruff linter
# - fix : ... with fixes
# - test : run test suite
# - build : build
# - release : Bump the version, update metadata, tag the release
# - dist : clean, build, publish
# - clean : remove anything built
# load vars from .env
# specifically, UV_PUBLISH_TOKEN for "make publish"
ifneq (,$(wildcard ./.env))
include .env
export
endif
.PHONY: all run clean
lint:
uvx ruff check
fix:
uvx ruff check --fix
test:
uv run pytest --log-cli-level=DEBUG
build:
uv build
# release:
# uv version --bump patch
# git tag -a v$(shell uv version --short) -m "Version $(shell uv version)"
# git commit -am "Releasing $(shell uv version)"
# git push
dist:
rm -fr dist/
uv build
uv publish
clean:
rm -fr .ruff_cache/
rm -fr dist/
rm -fr .venv/
rm -f dpytest_*.dat
rm -fr .pytest_cache/
find . -type f -name '*.pyc' -delete
find . -name __pycache__ | xargs rm -rf