Skip to content

Commit 6ef474f

Browse files
authored
Merge branch 'main' into fix/617-batch-unbatch-context
2 parents 21c61c0 + b44a9a1 commit 6ef474f

12 files changed

Lines changed: 14 additions & 21 deletions

File tree

.github/workflows/ci-minimal-dependency-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
UV_EXCLUDE_NEWER: "2 days"
2020

2121
steps:
22-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2323
- name: Install uv and setup python
24-
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
24+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
2525
with:
2626
activate-environment: true
2727
python-version: "3.12"

.github/workflows/ci-parity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
UV_EXCLUDE_NEWER: "2 days"
2020

2121
steps:
22-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2323
- name: Install uv and setup python
24-
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
24+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
2525
with:
2626
activate-environment: true
2727
python-version: "3.12"

.github/workflows/ci-testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
UV_TORCH_BACKEND: "cpu"
3636

3737
steps:
38-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3939
- name: Install uv and setup python
40-
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
40+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
4141
with:
4242
activate-environment: true
4343
python-version: ${{ matrix.python-version }}
@@ -70,7 +70,7 @@ jobs:
7070
coverage xml
7171
7272
- name: Upload coverage to Codecov
73-
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
73+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
7474
with:
7575
token: ${{ secrets.CODECOV_TOKEN }}
7676
file: ./coverage.xml

.github/workflows/release-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
env:
2121
UV_EXCLUDE_NEWER: "2 days"
2222
steps:
23-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2424
- name: Install uv and setup python
25-
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
25+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
2626
with:
2727
python-version: "3.12"
2828
enable-cache: true
@@ -68,4 +68,4 @@ jobs:
6868
- run: ls -lh dist/
6969

7070
- name: Publish distribution 📦 to PyPI
71-
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
71+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ repos:
2323
- id: detect-private-key
2424

2525
- repo: https://github.com/codespell-project/codespell
26-
rev: v2.4.2
26+
rev: v2.4.3
2727
hooks:
2828
- id: codespell
2929
additional_dependencies: [tomli]
3030
#args: ["--write-changes"]
3131

3232
- repo: https://github.com/JoC0de/pre-commit-prettier
33-
rev: v3.8.1
33+
rev: v3.9.6
3434
hooks:
3535
- id: prettier
3636
files: \.(json|yml|yaml|toml)
@@ -46,7 +46,7 @@ repos:
4646
args: ["--in-place"]
4747

4848
- repo: https://github.com/astral-sh/ruff-pre-commit
49-
rev: v0.15.9
49+
rev: v0.16.1
5050
hooks:
5151
- id: ruff
5252
args: ["--fix"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ dev = [
166166
"fastmcp>=2.9.2 ; python_full_version >= '3.10'",
167167
"httpx>=0.27.0",
168168
"lightning>2.0.0",
169-
"mypy==2.1.0",
169+
"mypy==2.3.0",
170170
"numpy<3.0",
171171
"openai>=1.12.0",
172172
"pillow>=11.3.0",

src/litserve/api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def __init__(
148148
enable_async: bool = False,
149149
):
150150
"""Initialize LitAPI with configuration options."""
151-
152151
if max_batch_size <= 0:
153152
raise ValueError("max_batch_size must be greater than 0")
154153

@@ -394,7 +393,6 @@ def pre_setup(self, spec: Optional[LitSpec] = None):
394393

395394
def set_logger_queue(self, queue: Queue):
396395
"""Set the queue for logging events."""
397-
398396
self._logger_queue = queue
399397

400398
def log(self, key, value):

src/litserve/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ def _get_request_queue(self, api_path: str):
10981098

10991099
def _register_api_endpoints(self, lit_api: LitAPI, request_type, response_type):
11001100
"""Register endpoint routes for the FastAPI app."""
1101-
11021101
self._callback_runner.trigger_event(EventTypes.ON_SERVER_START.value, litserver=self)
11031102

11041103
# Create handlers

src/litserve/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ def add_ssl_context_from_env(kwargs: dict[str, Any]) -> dict[str, Any]:
322322
returns an empty dictionary.
323323
324324
"""
325-
326325
if "ssl_keyfile" in kwargs and "ssl_certfile" in kwargs:
327326
return kwargs
328327

tests/parity_fastapi/benchmark.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def send_request(args):
5252

5353
def benchmark(num_requests=100, concurrency_level=100, port=8000):
5454
"""Benchmark the ML server."""
55-
5655
# Create a session with appropriate pool size
5756
session = create_session(pool_connections=min(concurrency_level, 100), pool_maxsize=min(concurrency_level, 100))
5857

0 commit comments

Comments
 (0)