-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 924 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
# Use this makefile to run development procedures.
style: black flake8 isort pydocstyle mypy requirements
@echo "🎉 style passed!"
test: style
pytest
@echo "🎉 test passed!"
build: test clean
python setup.py sdist bdist_wheel
@echo "📦 build complete."
publish: build
pip install --upgrade twine
twine upload dist/*
@echo "🎯 publish complete."
black:
black . --line-length=79
@echo "✅ black done."
flake8:
flake8
@echo "✅ flake done."
isort:
isort . --profile black
@echo "✅ isort done."
pydocstyle:
pydocstyle
@echo "✅ pydocstyle done."
mypy:
mypy
@echo "✅ mypy done."
requirements:
poetry export --without-hashes --output requirements.txt
poetry export --dev --without-hashes --output requirements.dev.txt
@echo "✅ requirements done."
clean:
pyclean -v .
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf build
rm -rf dist
rm -rf *.egg-info
@echo "♲ clean done."