-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 885 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
.ONESHELL:
CMD = python
PACKAGE_DIR = drifting
TEST_DIR = tests
.PHONY = help setup test run clean
help:
@echo "---------------HELP-----------------"
@echo "Run make _command_. See Makefile for "
@echo "the reference."
@echo "------------------------------------"
install-poetry:
pip install poetry==1.1.14
install-prod:
poetry install
install:
# poetry install --with dev,test
pip install -r requirements.txt
test:
${CMD} -m pytest tests/
check-all:
${CMD} -m black --check ${PACKAGE_DIR} ${TEST_DIR}
${CMD} -m pylint ${PACKAGE_DIR} ${TEST_DIR}
${CMD} -m mypy --ignore-missing-imports ${PACKAGE_DIR} ${TEST_DIR}
format:
${CMD} -m black ${PACKAGE_DIR} ${TEST_DIR}
build:
pip install wheel
python setup.py sdist bdist_wheel
bump:
cz changelog
cz bump
release:
pip install twine==3.8.0
twine upload --username __token__ --password ${PYPI_TOKEN} dist/*