-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
56 lines (40 loc) · 1.04 KB
/
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
install:
@ pip install uv
@ uv sync --all-extras
install-updates:
@ pip install uv
@ uv sync --upgrade --refresh --all-extras
list-outdated: install
@ pip list -o
lint-check:
@ uv run lint-check --new ./buildpy
lint-check-ci:
@ uv run lint-check --new ./buildpy --output-file lint-check-results.json --output-format annotations
lint-fix:
@ uv run isort --sl -l 1000 ./buildpy
@ uv run lint-check --new --fix ./buildpy
type-check:
@ uv run type-check ./buildpy
type-check-ci:
@ uv run type-check ./buildpy --output-file type-check-results.json --output-format annotations
build:
@ uv build
start:
@ echo "Not Supported"
start-prod:
@ echo "Not Supported"
test:
@ echo "Not Supported"
test-ci:
@ echo "Not Supported"
clean:
@ rm -rf ./.mypy_cache ./__pycache__ ./build ./dist
publish: build
@ uv publish
GIT_LAST_TAG=$(shell git describe --tags --abbrev=0)
GIT_COUNT=$(shell git rev-list $(GIT_LAST_TAG)..HEAD --count)
publish-dev:
@ uv run buildpy/version.py --part dev --count $(GIT_COUNT)
@ uv build
@ uv publish
.PHONY: *