forked from useblocks/sphinx-needs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (44 loc) · 1.47 KB
/
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
57
58
59
SRC_FILES = sphinx_needs/ tests/ performance/ 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 -m "not jstest" --tb=long --ignore=tests/benchmarks tests/
.PHONY: test
test-short:
poetry run pytest -n auto -m "not jstest" --tb=long --ignore-glob="*official*" --ignore=tests/benchmarks tests/
.PHONY: test
test-js:
poetry run pytest -n 1 -m "jstest" --tb=long --ignore-glob="*official*" --ignore=tests/benchmarks tests/
.PHONY: benchmark-time
benchmark-time:
nox --non-interactive --session benchmark_time -- --full-trace
.PHONY: benchmark-memory
benchmark-memory:
nox --non-interactive --session benchmark_memory -- --full-trace
.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: needs
needs:
poetry run sphinx-build -a -E -j auto -b needs 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}