-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 773 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 773 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
.PHONY: update docs quality Quality tests clean
update:
pip install -r requirements-dev.txt
python setup.py build_ext --inplace
pip install -e .
docs:
sphinx-build -W -n -b html docs ./build/sphinx/html
quality:
black --check .
isort --check-only --diff .
mypy run.py src tests
pylint --reports=no --score=no setup.py run.py src tests
python setup.py check --strict --metadata --restructuredtext
check-manifest
python setup.py sdist >/dev/null 2>&1 && twine check dist/*
Quality: # not used in tests
vulture --exclude=build/ src tests setup.py
tests:
pytest tests/
clean:
-find src "(" -name '*.so' -or -name '*.egg' -or -name '*.pyc' -or -name '*.pyo' ")" -delete
-find src -type d -name __pycache__ -exec rm -r {} \;
-rm -rf .tox .cache build dist