-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 743 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (19 loc) · 743 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
.PHONY: lint format typecheck lint-container format-container test-container typecheck-container ci run
lint:
uv run ruff check
format:
uv run ruff format
typecheck:
uv run mypy --strict
run:
uv run python src/main.py
lint-container:
docker compose exec ai-cat-api bash -c "cd / && ruff check --output-format=github src/ tests/"
format-container:
docker compose exec ai-cat-api bash -c "cd / && ruff format"
test-container:
docker compose exec ai-cat-api bash -c "cd / && pytest -vv -s src/ tests/"
typecheck-container:
docker compose exec ai-cat-api bash -c "cd / && mypy --strict"
ci: lint-container typecheck-container test-container
docker compose exec ai-cat-api bash -c "cd / && ruff format src/ tests/ --check --diff"