-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
73 lines (54 loc) · 997 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
all: test doctest isort lint typecheck docs
##
# <all>
test:
pytest --cov=pychoir/ tests/
.PHONY: test
test_clean:
rm -f .coverage
rm -rf .pytest_cache
.PHONY: test_clean
doctest:
python -m doctest pychoir/[!_]*.py
.PHONY: doctest
isort:
isort pychoir/ tests/
.PHONY: isort
lint:
flake8 pychoir/ tests/
.PHONY: lint
typecheck:
mypy pychoir/ tests/
.PHONY: typecheck
typecheck_clean:
rm -rf .mypy_cache/
.PHONY: typecheck_clean
docs:
make -C docs/ html
.PHONY: docs
docs_clean:
make -C docs/ clean
.PHONY: docs_clean
# </all>
##
##
# These are not needed that often
tox:
tox
.PHONY: tox
tox_clean: package_clean typecheck_clean test_clean
rm -rf .tox/*
.PHONY: tox_clean
package: package_clean
python setup.py sdist bdist_wheel
.PHONY: package
package_clean:
rm -rf build/
rm -rf dist/
rm -rf pychoir.egg-info/
rm -f pychoir/_version.py
.PHONY: package_clean
upload:
twine upload dist/*
.PHONY: upload
clean: test_clean typecheck_clean docs_clean package_clean