-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 731 Bytes
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
PYTHONPATH := "src:tests"
.PHONY: test
test: unit_test doctest
python -m coverage combine .coverage-*
python -m coverage xml
python -m coverage html
python -m coverage report
.PHONY: unit_test
unit_test:
COVERAGE_FILE=.coverage-unit PYTHONPATH=$(PYTHONPATH) python -m pytest tests/unit --junitxml=test-results/unit.xml
.PHONY: doctest
doctest:
COVERAGE_FILE=.coverage-doctest PYTHONPATH=$(PYTHONPATH) python -m pytest --doctest-modules src --junitxml=test-results/doctest.xml
.PHONY: docs
docs:
$(MAKE) -C docs html
.PHONY: mypy
mypy:
python -m mypy src/arsenal
.PHONY: clean
clean: clean-docs clean-build
.PHONY: clean-docs
clean-docs:
$(MAKE) -C docs clean
.PHONY: clean-build
clean-build:
@rm -rf dist build