-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
36 lines (25 loc) · 724 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 breds tests
pycln -a breds tests
isort --profile black breds tests
PYTHONPATH=. pylint --rcfile=pylint.cfg breds
PYTHONPATH=. flake8 --config=setup.cfg breds
typing:
mypy --config mypy.ini -p breds
test:
PYTHONPATH=. coverage run --rcfile=setup.cfg --source=./breds -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