-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (40 loc) · 1.23 KB
/
Taskfile.yml
File metadata and controls
49 lines (40 loc) · 1.23 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
49
version: "3"
tasks:
default:
silent: true
cmds:
- task --list
install:
desc: Install dependencies
cmds:
- poetry install
dev:
desc: Run the application locally in development mode
cmds:
- poetry run uvicorn main:app --reload --port 8002
docker-up-dev:
desc: Run the application with Docker Compose (Development)
cmds:
- docker compose -f {{.ROOT_DIR}}/docker-compose.yml up -d --build --wait
docker-up-prod:
desc: Run the application with Docker Compose (Production)
cmds:
- docker compose -f {{.ROOT_DIR}}/docker-compose.prod.yml up -d --build --wait
format:
desc: Format Python code using black and ruff
cmds:
- poetry run black .
- poetry run ruff check --fix .
lint:
desc: Lint Python code using ruff
cmds:
- poetry run ruff check .
test-e2e:
desc: Run the E2E negotiation and transfer test
deps: [install, docker-up-dev]
cmds:
- poetry run python scripts/run_e2e.py {{.CLI_ARGS}}
run-tool-example:
desc: Run the multipart tool example demonstrating calls that use POST methods with multipart/form-data payloads
cmds:
- poetry run python examples/multipart-tool/run_example.py {{.CLI_ARGS}}