generated from febus982/bootstrap-python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 909 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
.PHONY: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage poetry-export
#########################
###### dev commands #####
#########################
dev-dependencies:
poetry install --with dev --no-root
update-dependencies:
poetry update --with dev
test:
poetry run pytest -n auto --cov
docs:
poetry run mkdocs serve
fix:
poetry run ruff check . --fix
poetry run ruff format .
check: poetry-export
tox
typing: poetry-export
tox -e typing
lint: poetry-export
tox -e lint
format: poetry-export
tox -e format
#########################
#### Helper commands ####
#########################
poetry-export:
poetry export -f requirements.txt --output /tmp/requirements.txt --with dev
#########################
###### CI commands ######
#########################
ci-test:
poetry run pytest
ci-coverage:
poetry run pytest --cov --cov-report lcov