-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.31 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ifneq (,$(wildcard ./.example.env))
include .example.env
export
else ifneq (,$(wildcard ./.local.env))
include .local.env
export
endif
.PHONY: build
build:
docker compose build
.PHONY: up
up:
docker compose up -d --build
$(MAKE) logs
.PHONY: down
down:
docker compose down
.PHONY: logs
logs:
docker compose logs -f
.PHONY: shell
shell:
docker compose run --rm python bash
.PHONY: flake8
flake8:
docker compose run --rm python bash -c "python run_command.py rye run flake8 ./"
.PHONY: mypy
mypy:
docker compose run --rm python bash -c "python run_command.py rye run mypy ./"
.PHONY: black
black:
docker compose run --rm python bash -c "python run_command.py rye run black ./"
.PHONY: black_check
black_check:
docker compose run --rm python bash -c "python run_command.py rye run black ./ --check"
.PHONY: pytest_html
pytest_html:
docker compose run --rm python bash -c "python run_command.py rye run pytest -v ./test/ --cov=./src/ --cov-report=html"
.PHONY: pytest_xml
pytest_xml:
docker compose run --rm python bash -c "python run_command.py rye run pytest -v ./test/ --cov=./src/ --cov-report=xml"
.PHONY: pytest_ci
pytest_ci:
docker compose run --rm python bash -c "python run_command.py rye run pytest -v ./test/ --cov=./src/ --cov-report=xml --cov-report=term-missing:skip-covered --junitxml=pytest.xml"