-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (29 loc) · 860 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
.PHONY: install lint check-fmt check-ruff check-mypy test profile fix format docs-deploy
ifdef GITHUB_ACTIONS
RUFF_ARGS := --output-format github
endif
install:
.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install poetry
.venv/bin/poetry install --no-root
lint: check-fmt check-ruff check-mypy
check-fmt:
.venv/bin/ruff format . --check
check-ruff:
.venv/bin/ruff check wireup test $(RUFF_ARGS)
check-mypy:
.venv/bin/mypy wireup --strict
test:
.venv/bin/pytest test/unit
profile ./profile_tests $(num_runs):
./.venv/bin/python ./profile_tests.py $(num_runs)
format:
./.venv/bin/ruff format .
fix:
./.venv/bin/ruff wireup --fix
# make docs-deploy version=...
docs-deploy $(version):
cd docs && ../.venv/bin/mike deploy --push --update-aliases $(version) latest
publish:
./.venv/bin/poetry build
./.venv/bin/poetry publish