Skip to content

Commit 5c9be94

Browse files
T-256T-256
andauthored
bump to v0.3.0 && format (#895)
Co-authored-by: T-256 <Tester@test.com>
1 parent 5518172 commit 5c9be94

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

httpcore/_async/http2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def __init__(
7575

7676
# Connection terminated events are stored as state since
7777
# we need to handle them for all streams.
78-
self._connection_terminated: typing.Optional[
79-
h2.events.ConnectionTerminated
80-
] = None
78+
self._connection_terminated: typing.Optional[h2.events.ConnectionTerminated] = (
79+
None
80+
)
8181

8282
self._read_exception: typing.Optional[Exception] = None
8383
self._write_exception: typing.Optional[Exception] = None

httpcore/_sync/http2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def __init__(
7575

7676
# Connection terminated events are stored as state since
7777
# we need to handle them for all streams.
78-
self._connection_terminated: typing.Optional[
79-
h2.events.ConnectionTerminated
80-
] = None
78+
self._connection_terminated: typing.Optional[h2.events.ConnectionTerminated] = (
79+
None
80+
)
8181

8282
self._read_exception: typing.Optional[Exception] = None
8383
self._write_exception: typing.Optional[Exception] = None

pyproject.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,12 @@ exclude = [
106106
"httpcore/_sync",
107107
"tests/_sync",
108108
]
109-
line-length = 88
110-
select = [
111-
"E",
112-
"F",
113-
"W",
114-
"I"
115-
]
116109

117-
[tool.ruff.pycodestyle]
110+
[tool.ruff.lint]
111+
select = ["E", "F", "W", "I"]
112+
113+
[tool.ruff.lint.pycodestyle]
118114
max-line-length = 120
119115

120-
[tool.ruff.isort]
116+
[tool.ruff.lint.isort]
121117
combine-as-imports = true

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ twine
1414

1515
# Tests & Linting
1616
coverage[toml]==7.4.1
17-
ruff==0.2.2
17+
ruff==0.3.0
1818
mypy==1.8.0
1919
trio-typing==0.10.0
2020
types-certifi==2021.10.8.3

scripts/check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export SOURCE_FILES="httpcore tests"
88

99
set -x
1010

11-
${PREFIX}ruff check --show-source $SOURCE_FILES
1211
${PREFIX}ruff format $SOURCE_FILES --diff
1312
${PREFIX}mypy $SOURCE_FILES
13+
${PREFIX}ruff check $SOURCE_FILES
1414
${PREFIX}python scripts/unasync.py --check

tests/concurrency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
We don't do any smarts around cancellations, or managing exceptions from
99
childen, because we don't need that for our use-case.
1010
"""
11+
1112
import threading
1213
from types import TracebackType
1314
from typing import Any, Callable, List, Optional, Type

0 commit comments

Comments
 (0)