-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 576 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 576 Bytes
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
COMMIT_HASH := $(shell git rev-parse --short HEAD)
DOCKER_IMAGE := suever/matl-online:$(COMMIT_HASH)
docker:
docker build -f Dockerfile -t suever/matl-online .
docker tag suever/matl-online $(DOCKER_IMAGE)
test:
MATL_ONLINE_ENV=test \
pytest \
--verbose \
--cov-report=html \
--cov-report=term \
--cov=matl_online \
tests
integration-tests:
docker compose \
-f docker-compose.yml \
-f docker-compose.test.yml \
run tests
reformat:
black .
format-check:
black . --check
type-check:
mypy
flake8:
flake8 .
lint: type-check format-check flake8