-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1 KB
/
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
.PHONY: clean-pyc
build: clean-pyc
docker-compose build deloreans-build
run: build clean-container
docker-compose up -d deloreans-run
ssh:
docker-compose exec deloreans-run /bin/sh
test:
python -m pytest -sv --cov-report term-missing --cov-report html:coverage_report --cov-report xml:coverage_report/cov.xml --junitxml=coverage_report/pytest.xml --cov=deloreans/ --disable-warnings -p no:cacheprovider tests/*
testd: build clean-container
docker-compose up --exit-code-from deloreans-test deloreans-test
lint:
python -m flake8 deloreans/ tests/
lintd: build clean-container
docker-compose up --exit-code-from deloreans-lint deloreans-lint
type-hint:
python -m mypy deloreans/
type-hintd: build clean-container
docker-compose up --exit-code-from deloreans-type-hint deloreans-type-hint
clean-pyc:
# clean all pyc files
find . -name '__pycache__' | xargs rm -rf | cat
find . -name '*.pyc' | xargs rm -f | cat
clean-container:
# stop and remove useless containers
docker-compose down --remove-orphans