-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.3 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
services:
# ---------------------------------------------------------------------------
# test — run the full pytest suite inside Docker
# ---------------------------------------------------------------------------
test:
build:
context: .
target: dev
image: youtube-python-sdk:dev
volumes:
# Mount source code so local edits are reflected without rebuilding.
- ./youtube:/app/youtube:ro
- ./tests:/app/tests:ro
command: pytest --tb=short -v
# ---------------------------------------------------------------------------
# lint — run ruff format check and linting inside Docker
# ---------------------------------------------------------------------------
lint:
build:
context: .
target: dev
image: youtube-python-sdk:dev
volumes:
- ./youtube:/app/youtube:ro
- ./tests:/app/tests:ro
command: >
sh -c "ruff format --check . && ruff check ."
# ---------------------------------------------------------------------------
# typecheck — run mypy static analysis inside Docker
# ---------------------------------------------------------------------------
typecheck:
build:
context: .
target: dev
image: youtube-python-sdk:dev
volumes:
- ./youtube:/app/youtube:ro
command: mypy youtube/