-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 799 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 799 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: lint format check clean upload bump-patch bump-minor bump-major push
lint:
uv run ruff check .
format:
uv run ruff format .
check:
uv run pytest
clean:
find . -name '*.pyc' -print0 | xargs -r -0 rm
find . -name '*~' -print0 | xargs -r -0 rm
find . -name .pytest_cache -print0 | xargs -r -0 rm -r
find . -name __pycache__ -print0 | xargs -r -0 rm -r
# The upload target requires that you have access rights to PYPI. There
# should be no need to run this as there is a GitHub action that will
# automatically publish to PyPI when a newly tagged version is pushed to
# GitHub.
upload:
uv build
uv publish
bump-patch:
uv run bump-my-version bump patch
bump-minor:
uv run bump-my-version bump minor
bump-major:
uv run bump-my-version bump major
push:
git push --follow-tags