-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (29 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
SRC_FILES = sphinx_modeling/ 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: format
format:
poetry run black ${SRC_FILES}
poetry run isort ${SRC_FILES}