-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 753 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 753 Bytes
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
setup:
python3 -m venv venv; \
. venv/bin/activate; \
pip3 install -r requirements.txt; \
run:
. venv/bin/activate; \
python3 template.py; \
freeze:
. venv/bin/activate; \
pip3 install --upgrade Jinja2 PyYAML boto boto3 nested_dict nose psutil pynput pytest pytest-xdist python-dateutil requests simplejson six slacker urllib3 black flake8 pylint; \
pip3 freeze > requirements.txt; \
format:
. venv/bin/activate; \
black *.py tests/*.py; \
lint:
. venv/bin/activate; \
flake8 --ignore E501,W503 *.py tests/*.py; \
pylint --disable=C,R *.py tests/*.py; \
check: format lint
test:
. venv/bin/activate; \
pytest -n auto -v; \
retest:
. venv/bin/activate; \
pytest -n auto -v --lf; \
.PHONY: check format freeze lint run setup test