forked from ssf0409/tracelens
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.12 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
50
51
52
services:
# Unit tests
test:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src:ro
- ./tests:/app/tests:ro
command: uv run pytest tests/ -v --tb=short
# Run tests with coverage
test-coverage:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src:ro
- ./tests:/app/tests:ro
- ./coverage:/app/coverage
command: uv run pytest tests/ -v --cov=tracelens --cov-report=html:coverage/html --cov-report=term-missing
# Type checking with mypy
type-check:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src:ro
command: uv run mypy src/tracelens/ --ignore-missing-imports
# Linting with ruff
lint:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src:ro
- ./tests:/app/tests:ro
command: uv run ruff check src/ tests/
# Interactive development shell
dev:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src
- ./tests:/app/tests
command: /bin/bash
stdin_open: true
tty: true