Skip to content

Commit 1ecc54a

Browse files
committed
Fix styling issues
1 parent e8300a9 commit 1ecc54a

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ keywords = [
4545
]
4646
dependencies = [
4747
"click>=8.0.0,<8.2.0",
48+
"culsans~=0.9.0",
4849
"datasets",
4950
"ftfy>=6.0.0",
5051
"httpx[http2]<1.0.0",
@@ -150,15 +151,16 @@ indent-style = "space"
150151

151152
[tool.ruff.lint]
152153
ignore = [
153-
"PLR0913",
154-
"TC001",
155-
"COM812",
156-
"ISC001",
157-
"TC002",
154+
"COM812", # ignore trailing comma errors due to older Python versions
155+
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
156+
"PLR0913", # ignore too many arguments in function definitions
158157
"PLW1514", # allow Path.open without encoding
159158
"RET505", # allow `else` blocks
160159
"RET506", # allow `else` blocks
161-
"PD011", # ignore .values usage since ruff assumes it's a Pandas DataFrame
160+
"S311", # allow standard pseudo-random generators
161+
"TC001", # ignore imports used only for type checking
162+
"TC002", # ignore imports used only for type checking
163+
"TC003", # ignore imports used only for type checking
162164
]
163165
select = [
164166
# Rules reference: https://docs.astral.sh/ruff/rules/

src/guidellm/utils/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import json
1414
from collections.abc import Mapping
15-
from typing import Annotated, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union
15+
from typing import Annotated, Any, ClassVar, Generic, Literal, Optional, TypeVar
1616

1717
try:
1818
import msgpack

src/guidellm/utils/messaging.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,10 +856,9 @@ def _background_pipe_recv():
856856
try:
857857
with pipe_lock:
858858
pending = pipe_item
859-
pipe_item = None # Clear after taking
859+
pipe_item = None
860860

861861
if pending is not None:
862-
# pending is already encoded, just send it directly
863862
send_connection.send(pending)
864863
except (EOFError, ConnectionResetError):
865864
break

tests/unit/utils/test_messaging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ async def test_lifecycle_put_get(
556556
],
557557
)
558558
@async_timeout(10.0)
559-
async def test_lifecycle_put_get(
559+
async def test_lifecycle_put_get_iter(
560560
self, multiprocessing_contexts, valid_instances, test_obj
561561
):
562562
instance, constructor_args = valid_instances
@@ -853,7 +853,7 @@ async def test_lifecycle_put_get(self, valid_instances, test_obj):
853853
],
854854
)
855855
@async_timeout(10.0)
856-
async def test_lifecycle_put_get(self, valid_instances, test_obj):
856+
async def test_lifecycle_put_get_iter(self, valid_instances, test_obj):
857857
instance, constructor_args, _, context = valid_instances
858858

859859
if (

0 commit comments

Comments
 (0)