-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (31 loc) · 779 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
PKG = services
.PHONY: init flake8 pylint lint test clean
init: clean
pipenv --python 3.9
pipenv install --dev
pipenv run pre-commit install
ci-bundle: lint test
lint: pylint flake8
flake8:
pipenv run flake8 $(PKG)/ --max-line-length=120
pylint:
pipenv run pylint $(PKG)
mypy:
pipenv run mypy $(PKG) --config-file setup.cfg
black:
pipenv run black $(PKG) --skip-string-normalization
isort:
pipenv run isort .
format: isort black
build: clean build-cython clean-modules
build-cython:
cp Pipfile Pipfile.lock cython/
cp -r $(PKG) cython/
docker build -t $(PKG) cython/ --no-cache
clean-modules:
rm -f cython/Pipfile*
rm -rf cython/$(PKG)
test:
pipenv run pytest -vv
coverage:
pipenv run pytest --cov-report term-missing --cov-report xml --cov=$(PKG)