-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (36 loc) · 1.26 KB
/
makefile
File metadata and controls
48 lines (36 loc) · 1.26 KB
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
.PHONY: bash build check check-all down format review test help
DC = docker compose -f compose.yaml
help:
@echo "Available commands:"
@echo " make bash - Open a bash shell in the app container."
@echo " make build - Build images."
@echo " make check - Check code quality with ruff."
@echo " make check-all - Run check and tests."
@echo " make down - Stop and remove containers."
@echo " make e2e - Run e2e test."
@echo " make format - Format code."
@echo " make review - Check the code in the cli by running CodeRabbit."
@echo " make test - Run tests."
@echo " make help - Display this help message."
bash:
$(DC) run --rm -it app bash
build:
$(DC) build
check:
$(DC) run --rm app bash -c "ruff format --check . && ruff check . && flake8 . && mypy . && uv lock --check"
check-all:
make check
make test
down:
$(DC) down
format:
$(DC) run --rm app bash -c "ruff check --select I --fix . && ruff format ."
review:
coderabbit review --prompt-only
test:
$(DC) run --rm app pytest $(args) tests/unit
test-all:
make test
make e2e
e2e:
$(DC) run --rm app pytest -p no:randomly --junitxml=e2e-report.xml $(args) tests/e2e