-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 815 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 815 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
.PHONY: tests
tests:
python -m pytest tests/
.PHONY: lint
lint:
flake8 watemplate/* --count --select=E1,E2,E3,E4,E5,E7,E9,F63,F7,F82 --show-source --statistics
flake8 watemplate/* --count --max-complexity=10 --max-line-length=127 --statistics
flake8 tests/* --count --select=E1,E2,E3,E4,E5,E7,E9,F63,F7,F82 --show-source --statistics
flake8 tests/* --count --max-complexity=10 --max-line-length=127 --statistics
.PHONY: requirements
requirements:
pip freeze > requirements.txt
.PHONY: install
install:
python -m pip install --upgrade pip
pip install -U pytest flake8
pip install -r requirements.txt
.PHONY: virtualenv
virtualenv:
python3 -m venv venv # creates the virtual environment
source venv/bin/activate # activates the virtual environment
.PHONY: activate
activate:
source venv/bin/activate