Skip to content

Commit d908f3b

Browse files
authored
Update development dependencies (#56)
1 parent 369f100 commit d908f3b

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

pyproject.toml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ dev-dependencies = [
2424
"anyio~=4.4.0",
2525
"mypy~=1.11.1",
2626
"pytest-cov~=5.0.0",
27-
"pytest~=8.2.2",
28-
"ruff~=0.4.9",
27+
"pytest~=8.3.2",
28+
"ruff~=0.5.7",
2929
"uvloop~=0.19.0",
30-
"hypothesis~=6.103.2",
31-
"polyfactory",
32-
"faker",
30+
"hypothesis~=6.111.0",
31+
"polyfactory~=2.16.2",
32+
"faker~=26.3.0",
3333
]
3434

3535
[build-system]
@@ -54,7 +54,19 @@ line-length = 120
5454
[tool.ruff.lint]
5555
preview = true
5656
select = ["ALL"]
57-
ignore = ["D1", "D203", "D213", "COM812", "ISC001", "CPY001", "PLR0913", "PLC2801"]
57+
ignore = [
58+
"ASYNC109",
59+
"COM812",
60+
"CPY001",
61+
"D1",
62+
"D203",
63+
"D213",
64+
"DOC201",
65+
"DOC501",
66+
"ISC001",
67+
"PLC2801",
68+
"PLR0913",
69+
]
5870
extend-per-file-ignores = { "tests/*" = ["S101", "SLF001", "ARG"] }
5971

6072
[tool.pytest.ini_options]

stompman/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ async def write_frame(self, frame: AnyClientFrame) -> None:
6464
await self.writer.drain()
6565

6666
async def _read_non_empty_bytes(self, max_chunk_size: int) -> bytes:
67-
while (chunk := await self.reader.read(max_chunk_size)) == b"": # pragma: no cover (it defenitely happens)
67+
while ( # noqa: ASYNC110
68+
chunk := await self.reader.read(max_chunk_size)
69+
) == b"": # pragma: no cover (it defenitely happens)
6870
await asyncio.sleep(0)
6971
return chunk
7072

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def anyio_backend(request: pytest.FixtureRequest) -> object:
2222
return request.param
2323

2424

25-
@pytest.fixture()
25+
@pytest.fixture
2626
def mock_sleep(monkeypatch: pytest.MonkeyPatch) -> None: # noqa: PT004
2727
original_sleep = asyncio.sleep
2828
monkeypatch.setattr("asyncio.sleep", lambda _: original_sleep(0))

0 commit comments

Comments
 (0)