-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
69 lines (59 loc) · 1.42 KB
/
makefile
File metadata and controls
69 lines (59 loc) · 1.42 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: all
all: format lint type_check test
.PHONY: pkg_check
pkg_check:
uv pip check
.PHONY: test
test:
pytest tests
.PHONY: test_incr
test_incr:
pytest tests --testmon --no-cov -n 0
.PHONY: lint
lint:
ruff check --fix .
bash commit_lint.sh
.PHONY: format
format:
ruff format .
.PHONY: type_check
type_check:
pyright id_tracker/
.PHONY: clean
clean:
rm -rf .pytest_cache .tox dist .coverage sil_recon.egg-info build celerybeat-schedule .ruff_cache .testmondata
py3clean .
.PHONY: changelog
changelog:
git-changelog --style conventional \
--sections feat,fix,chore,revert,refactor,perf,build,ci,deps,docs,style,test \
--template keepachangelog \
--bump=auto \
-o CHANGELOG.md
.PHONY: package
package:
tox -e package
tox -e publish
.PHONY: help
help:
@echo "Usage:"
@echo " make"
@echo " Run ruff & pytest"
@echo " make test"
@echo " Run pytest & output coverage results"
@echo " make test_incr"
@echo " Run only tests with recent changes (speedup!)"
@echo " make lint"
@echo " Run the ruff linter"
@echo " make format"
@echo " Run the ruff formatter"
@echo " make type_check"
@echo " Run static type checking with pyright"
@echo " make clean"
@echo " Remove autogenerated files like __py_cache__"
@echo " make changelog"
@echo " Update the CHANGELOG"
@echo " make package"
@echo " Build the package and upload it"
@echo " make help"
@echo " Display usage information"