style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -4,7 +4,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
x-mineru-vllm: &mineru-vllm
<<: *defaults
@@ -25,21 +25,21 @@ x-mineru-vllm: &mineru-vllm
deploy:
resources:
limits:
cpus: "16.0"
cpus: '16.0'
memory: 32G
reservations:
cpus: "8.0"
cpus: '8.0'
memory: 16G
devices:
- driver: nvidia
device_ids: ["0"]
device_ids: ['0']
capabilities: [gpu]
services:
mineru-openai-server:
<<: *mineru-vllm
profiles:
- "openai-server"
- openai-server
- ${COMPOSE_PROFILES:-}
ports:
- ${MINERU_PORT_OVERRIDE_VLLM:-30000}:30000
@@ -50,7 +50,7 @@ services:
# --data-parallel-size 2 # If using multiple GPUs, increase throughput using vllm's multi-GPU parallel mode
# --gpu-memory-utilization 0.9 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:30000/health || exit 1"]
test: [CMD-SHELL, 'curl -f http://localhost:30000/health || exit 1']
interval: 30s
timeout: 10s
retries: 3
@@ -58,7 +58,7 @@ services:
mineru-api:
<<: *mineru-vllm
profiles: ["api"]
profiles: [api]
ports:
- ${MINERU_PORT_OVERRIDE_API:-8000}:8000
entrypoint: mineru-api
@@ -70,14 +70,13 @@ services:
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8000/docs",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:8000/docs'
interval: 30s
timeout: 10s
retries: 3
@@ -85,7 +84,7 @@ services:
mineru-gradio:
<<: *mineru-vllm
profiles: ["gradio"]
profiles: [gradio]
ports:
- ${MINERU_PORT_OVERRIDE_GRADIO:-7860}:7860
entrypoint: mineru-gradio
@@ -99,14 +98,13 @@ services:
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:7860/",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:7860/'
interval: 30s
timeout: 10s
retries: 3