-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
36 lines (25 loc) · 745 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
.PHONY: test lint virtualenv dist
lint:
black -t py39 -l 120 snowball tests
pycln -a snowball tests
isort --profile black snowball tests
PYTHONPATH=. pylint --rcfile=pylint.cfg snowball
PYTHONPATH=. flake8 --config=setup.cfg snowball
typing:
mypy --config mypy.ini -p snowball
test:
PYTHONPATH=. coverage run --rcfile=setup.cfg --source=./snowball -m pytest
PYTHONPATH=. coverage report --rcfile=setup.cfg
clean:
rm -rf build dist *.egg-info .coverage .pytest_cache .mypy_cache .pytest_cache src/*.egg-info
publish:
make all
python -m pip install --upgrade build
python -m build
python -m pip install --upgrade twine
python -m twine upload --repository testpypi dist/*
all:
make clean
make lint
make typing
make test