-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
50 lines (36 loc) · 817 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
CODE_DIRS = src/ tests/ setup.py
ISORT_PARAMS = --ignore-whitespace --settings-path . $(CODE_DIRS)
all: lint
lint: mypy
black --check --diff $(CODE_DIRS)
flake8 $(CODE_DIRS)
isort $(ISORT_PARAMS) --diff --check-only
pylint $(CODE_DIRS)
mypy:
mypy $(CODE_DIRS)
isort:
isort $(ISORT_PARAMS)
black:
black $(CODE_DIRS)
format: isort black
test:
pytest-gevent -v tests -n 4
install:
pip install -r requirements.txt
install-dev:
pip install -U -r requirements-dev.txt
pip install -e .
dist:
python3 setup.py sdist bdist_wheel
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -delete
find . -name '*.egg' -delete
clean-pyc:
find . -name '*.pyc' -delete
find . -name '*.pyo' -delete
find . -name '__pycache__' -delete
.PHONY: dist