-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (60 loc) · 1.37 KB
/
Makefile
File metadata and controls
78 lines (60 loc) · 1.37 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.PHONY:
venv:
virtualenv -p python3 venv --no-site-packages
.PHONY: setup
setup:
pip install -r requirements.txt
pip install --editable .
.PHONY: dist
dist:
python3 setup.py sdist bdist_wheel
.PHONY: clean
clean:
rm -fr build dist *.egg-info
.PHONY: black
black:
black --skip-string-normalization rating_engine *.py
.PHONY: black-check
black-check:
black --check --skip-string-normalization rating_engine *.py
.PHONY: flake8
flake8:
flake8 --ignore=E501,E402,W503 rating_engine *.py
.PHONY: mypy
mypy:
mypy rating_engine
.PHONY: pylint
pylint:
pylint rating_engine *.py
.PHONY: pycodestyle
pycodestyle:
pycodestyle --ignore=E501,W503,E402,E701 rating_engine *.py
.PHONY: check
check: black-check flake8 mypy pylint pycodestyle
.PHONY: test
test:
py.test -p no:warnings
.PHONY: coverage
coverage:
coverage run -m py.test -p no:warnings
coverage report
coverage html
coverage xml
.PHONY: engine
engine:
rating-engine
.PHONY: engine-dev
engine-dev:
rating-engine --debug
.PHONY: dockerfile
dockerfile:
docker build -t canyan/rating-engine:master .
.PHONY: dockerfile-tests
dockerfile-tests:
docker build -t canyan/rating-engine:tests -f Dockerfile.tests .
.PHONY: docker-start
docker-start:
docker-compose -f docker-compose.yaml -f docker-compose.tests.yaml up -d
.PHONY: docker-stop
docker-stop:
docker-compose -f docker-compose.yaml -f docker-compose.tests.yaml down