-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 684 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (17 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: setup, enter_container, test, lint, format
setup:
docker compose down
docker compose up -d --build
serve:
docker exec sagemaker_endpoint poetry run serve
enter_container:
docker exec -it sagemaker_endpoint bash
test:
docker exec sagemaker_endpoint python3 -m poetry run pytest tests --cov=/var/task --cov-report term-missing
lint:
docker exec sagemaker_endpoint poetry run mypy --explicit-package-bases .
docker exec sagemaker_endpoint poetry run ruff check .
docker exec sagemaker_endpoint poetry run black --check .
format:
docker exec sagemaker_endpoint poetry run ruff check . --fix --exit-non-zero-on-fix
docker exec sagemaker_endpoint poetry run black .