-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
35 lines (25 loc) · 884 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
.PHONY: docs
black:
black embetter tests setup.py
flake:
flake8 embetter tests setup.py
test:
pytest -n auto -vv
install:
python -m pip install -e ".[dev]"
interrogate:
interrogate -vv --ignore-nested-functions --ignore-semiprivate --ignore-private --ignore-magic --ignore-module --ignore-init-method --fail-under 100 tests
interrogate -vv --ignore-nested-functions --ignore-semiprivate --ignore-private --ignore-magic --ignore-module --ignore-init-method --fail-under 100 embetter
pypi:
python setup.py sdist
python setup.py bdist_wheel --universal
twine upload dist/*
clean:
rm -rf **/.ipynb_checkpoints **/.pytest_cache **/__pycache__ **/**/__pycache__ .ipynb_checkpoints .pytest_cache
check: clean black flake interrogate test clean
docs:
cp README.md docs/index.md
python -m mkdocs serve
deploy-docs:
cp README.md docs/index.md
python -m mkdocs gh-deploy