-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (34 loc) · 854 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
44
45
46
47
48
49
.PHONY: pytest pytest-full test-doc mypy test test-all doc pygount\
coverage coverage_html clean veryclean conda-build
pytest:
pytest -n 8 --exitfirst --doctest-modules
pytest-seq:
pytest --exitfirst --doctest-modules
pytest-full:
pytest -n 8 --doctest-modules
pytest-full-seq:
pytest --doctest-modules
test-doc:
cd doc && make test
mypy:
mypy logic1
test: mypy pytest
test-all: test test-doc
doc:
cd doc && make clean html
pygount:
pygount -f summary logic1
coverage:
coverage run -m pytest --doctest-modules
coverage_html: coverage
coverage html
open htmlcov/index.html
clean:
rm -r build dist logic1.egg-info
veryclean:
rm -rf htmlcov .coverage
conda-build:
LOGIC1_GIT_REPO="file:$$(pwd)" \
LOGIC1_GIT_REV="$$(git rev-parse HEAD)" \
LOGIC1_VERSION="$$(python -m setuptools_scm)" \
rattler-build build --recipe conda