-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
52 lines (40 loc) · 939 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
.DEFAULT_GOAL := all
poetry = poetry run
.PHONY: install
install:
poetry install --with dev,test,typing,docs
.PHONY: test
test:
$(poetry) pytest tests --cov
.PHONY: test-html
test-html:
$(poetry) pytest --cov --cov-report html
.PHONY: typing
typing:
$(poetry) mypy autointent
.PHONY: lint
lint:
$(poetry) ruff format
$(poetry) ruff check --fix
.PHONY: sync
sync:
poetry sync --with dev,test,typing,docs
.PHONY: docs
docs:
$(poetry) python -m sphinx build -b html docs/source docs/build/html
.PHONY: test-docs
test-docs:
$(poetry) python -m sphinx build -b doctest docs/source docs/build/html
.PHONY: serve-docs
serve-docs:
$(poetry) python -m http.server -d docs/build/html 8333
.PHONY: multi-version-docs
multi-version-docs:
$(poetry) sphinx-multiversion docs/source docs/build/html
.PHONY: clean-docs
clean-docs:
rm -rf docs/build
rm -rf docs/source/autoapi
rm -rf docs/source/user_guides
.PHONY: all
all: lint