-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (43 loc) · 896 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
.PHONY: all
all: install lint test build docs
.PHONY: clean
clean:
poetry run ruff --clean
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf *.coverage coverage.*
rm -rf dist
.PHONY: install
install:
poetry install --sync --all-extras --with=dev --with=docs
.PHONY: check
check: lint test
.PHONY: lint
lint: lint/ruff lint/mypy
.PHONY: lint/ruff
lint/ruff:
poetry run ruff check combadge tests
.PHONY: lint/mypy
lint/mypy:
poetry run mypy combadge tests
.PHONY: format
format: format/ruff
.PHONY: format/ruff
format/ruff:
poetry run ruff format combadge tests
poetry run ruff check --fix combadge tests
.PHONY: test
test:
poetry run pytest tests
.PHONY: test/record
test/record:
poetry run pytest --record-mode=once tests
.PHONY: build
build:
poetry build
.PHONY: docs
docs:
poetry run mkdocs build --site-dir _site
.PHONY: docs/serve
docs/serve:
poetry run mkdocs serve