forked from transferwise/cicada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 794 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
mkfile_path := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
python ?= python3
default:
cd $(mkfile_path) ;\
$(python) -m venv venv ;\
venv/bin/python3 -m pip install --upgrade pip ;\
venv/bin/python3 -m pip install -e .
dev:
cd $(mkfile_path) ;\
$(python) -m venv venv ;\
venv/bin/python3 -m pip install --upgrade pip ;\
venv/bin/python3 -m pip install -e .[dev]
pytest:
cd $(mkfile_path) ;\
. venv/bin/activate ;\
pytest tests/ --verbose --cov=cicada --cov-fail-under=80 --cov-report term-missing
flake8:
cd $(mkfile_path) ;\
. venv/bin/activate ;\
flake8 cicada/ --count --select=E9,F63,F7,F82 --max-line-length=120 --statistics --show-source
black:
cd $(mkfile_path) ;\
. venv/bin/activate ;\
black --check --verbose cicada/ tests/ --line-length 120