-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
34 lines (24 loc) · 680 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
.PHONY: clean req-test test lint
clean:
find . -path '*/__pycache__/*' -delete
find . -type d -name __pycache__ -delete
rm -rf .mypy_cache .pytest_cache dist build *.egg-info
req-test:
pip install --upgrade pip==20.3.4
pip install -e .[test]
test:
py.test -sv tests/ --log-cli-level=DEBUG
py.test -sv examples/prediction-demo/tests/ --log-cli-level=DEBUG
black:
black ./bin ./drapps ./tests -S -l 100
black-check:
black ./bin ./drapps ./tests -S --check -l 100
isort:
isort ./bin ./drapps ./tests
isort-check:
isort -c ./bin ./drapps ./tests
mypy:
mypy --config-file=mypy.ini ./drapps
flake:
flake8 bin drapps tests
lint: isort-check black-check mypy flake