-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (39 loc) · 1.08 KB
/
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
51
52
53
.DEFAULT_GOAL := env
run : env
.venv/bin/wire
env : .venv/bin/activate
.venv/bin/activate : requirements.txt
test -d .venv || python3 -m venv .venv
.venv/bin/pip install --upgrade pip wheel
.venv/bin/pip install -Ur requirements.txt
.venv/bin/pip install --editable .
touch .venv/bin/activate
env_dev : env .venv/has_dev
.venv/has_dev : requirements_dev.txt
.venv/bin/pip install -Ur requirements_dev.txt
touch .venv/has_dev # I don't understand makefiles send help
dev : isort black mypy flake8 test pylint
black : env_dev
.venv/bin/black wire
.venv/bin/black tests
mypy : env_dev
.venv/bin/mypy wire
.venv/bin/mypy tests
flake8 : env_dev
.venv/bin/flake8 --ignore=E501 wire
.venv/bin/flake8 --ignore=E501 tests
test : env_dev
.venv/bin/coverage run --source=wire .venv/bin/pytest tests
.venv/bin/coverage report
isort : env_dev
.venv/bin/isort wire
.venv/bin/isort tests
pylint : env_dev
.venv/bin/pylint wire
.venv/bin/pylint tests
clean :
rm -rf .venv
rm -rf wire.egg-info
rm -rf .mypy_cache
rm -rf .pytest_cache
find . -name "__pycache__" -type d -exec rm -rf {} +