-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 954 Bytes
/
Makefile
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
51
52
53
54
55
56
57
.PHONY: dependencies
dependencies:
SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 \
uv sync --no-install-project --all-extras --frozen
.PHONY: upgrade
upgrade:
SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 \
uv sync --no-install-project --all-extras --upgrade
.PHONY: build
build: clean
uv run python3 -m build
.PHONY: clean
clean:
rm -rf build dist
.PHONY: fix
fix:
uv run ruff format .
uv run ruff check --fix .
.PHONY: check-lint
check-lint:
uv run ruff format --check .
uv run ruff check .
.PHONY: check-type
check-type:
uv run mypy molot
.PHONY: check
check: check-lint check-type
.PHONY: test
test:
uv run pytest tests
.PHONY: pre
pre: fix check test
.PHONY: dist-check
dist-check: build
uv run twine check dist/*
.PHONY: dist-upload
dist-upload: check
uv run twine upload dist/*
.PHONY: dev-uninstall
dev-uninstall:
uv pip uninstall molot
.PHONY: dev-install
dev-install: build dev-uninstall
uv pip install dist/molot-*-py3-none-any.whl