blob: 09a500c36289aa990d1d0c3547a4f661dc59cb37 (
plain)
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
|
.PHONY: tags check documentation sphinx-apidoc test
DOC_OUTPUT = doc.rendered
PYTEST_FLAGS = $(if $(shell python -m pytest -VV | grep pytest-cov), \
--cov=mu4web --cov-branch --cov-report=html --full-trace)
tags:
ctags `find mu4web -type f -name '*.py'`
run:
python -m mu4web
check:
mypy -p mu4web
flake8 mu4web
flake8 test
mypy test
sphinx-apidoc:
sphinx-apidoc --separate --force -o doc mu4web
$(DOC_OUTPUT)/index.html: sphinx-apidoc
sphinx-build -b dirhtml doc $(DOC_OUTPUT)
documentation: $(DOC_OUTPUT)/index.html
test:
python -m pytest $(PYTEST_FLAGS) test
|