-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
53 lines (39 loc) · 860 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: clean init
init: clean
pipenv install --dev
pipenv run pre-commit install
service_up:
docker-compose up -d redis
service_down:
docker-compose down && docker volume rm redis_data
analysis: bandit
bandit:
pipenv run bandit api/
reformat: isort black
black:
pipenv run black api/
isort:
pipenv run isort .
lint: flake8 pylint
flake8:
pipenv run flake8 api/ --max-line-length=120
pylint:
pipenv run pylint --rcfile=setup.cfg api/*
test:
pipenv run pytest -vv\
--cov-report=term-missing\
--cov=api/endpoints\
--cov=api/common\
--cov=api/machine api/tests
ci-bundle: analysis reformat lint test
clean:
find . -type f -name '*.py[co]' -delete
find . -type d -name '__pycache__' -delete
rm -rf dist
rm -rf build
rm -rf *.egg-info
rm -rf .hypothesis
rm -rf .pytest_cache
rm -rf .tox
rm -f report.xml
rm -f coverage.xml