-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (23 loc) · 931 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
.PHONY: all test tests cov-report tests-all style black lint types docs tox mypy pdoc pylint clean test-watch tests-watch watch ptw travis travis-lint pdocs type
test tests .coverage:
tox -e py38
test-watch tests-watch watch ptw:
poetry run ptw -- --mypy --doctest-modules
cov-report: .coverage
poetry run coverage report -m
tests-all tox:
tox
style black:
poetry run black .
lint pylint:
poetry run pylint */*.py
travis travis-lint:
cat .travis.yml | docker run tianon/travis-cli lint -
type types mypy:
poetry run mypy .
docs pdoc pdocs:
poetry run pdoc --force --config show_type_annotations=True --html --output-dir docs $$(poetry version | cut -f1 -d' ' | sed 's/-/_/g')
mv docs/$$(poetry version | cut -f1 -d' ' | sed 's/-/_/g')/* docs
rmdir docs/$$(poetry version | cut -f1 -d' ' | sed 's/-/_/g')
clean:
rm -rf __pycache__ */__pycache__ *.egg-info .coverage .hypothesis .mypy_cache .tox .pytest_cache