-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
55 lines (40 loc) · 804 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
NAME = termspark
VERSION = 2.x
PYTHON = python3
clean:
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf *_cache
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf .coverage
find $(NAME) tests -type d -name '__pycache__' -exec rm -rf {} +
install: clean
pip install -e ."[dev]"
install_docs: clean
pip install -e ."[docs]"
update_docs_changelog: clean
cp CHANGELOG.md docs/changelog.md
build_docs: clean
mkdocs build -d docs_build
deploy_docs: clean
mike deploy $(VERSION)
push_docs: clean
mike set-default --push $(VERSION)
build: clean
$(PYTHON) setup.py bdist_wheel
test: clean
pytest --cov -v
lint: mypy
format:
isort .
black .
mypy:
mypy --show-error-codes $(NAME) tests
black:
black . --check
isort:
isort . --check-only
precommit: clean
pre-commit run --all-files