-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 983 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
SRC_FILES = sphinx_rst_table/ tests/ noxfile.py
.PHONY: list
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
.PHONY: lint
lint:
pre-commit run --all-files
.PHONY: test
test:
poetry run pytest -n auto --tb=long tests/
.PHONY: test
test-short:
poetry run pytest -n auto --tb=long --ignore-glob="*official*" tests/
.PHONY: test-matrix
test-matrix:
nox
.PHONY: docs-html
docs-html:
poetry run sphinx-build -a -E -j auto -b html docs/ docs/_build
.PHONY: docs-html
docs-html-fast:
poetry run sphinx-build -j auto -b html docs/ docs/_build
.PHONY: docs-pdf
docs-pdf:
poetry run make --directory docs/ clean && make --directory docs/ latexpdf
.PHONY: docs-linkcheck
docs-linkcheck:
poetry run make --directory docs/ linkcheck
.PHONY: format
format:
poetry run black ${SRC_FILES}
poetry run isort ${SRC_FILES}