Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
T-256 authored and T-256 committed Mar 1, 2024
1 parent 5518172 commit 6b586a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions httpcore/_async/http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def __init__(

# Connection terminated events are stored as state since
# we need to handle them for all streams.
self._connection_terminated: typing.Optional[
h2.events.ConnectionTerminated
] = None
self._connection_terminated: typing.Optional[h2.events.ConnectionTerminated] = (
None
)

self._read_exception: typing.Optional[Exception] = None
self._write_exception: typing.Optional[Exception] = None
Expand Down
14 changes: 5 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,12 @@ exclude = [
"httpcore/_sync",
"tests/_sync",
]
line-length = 88
select = [
"E",
"F",
"W",
"I"
]

[tool.ruff.pycodestyle]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]

[tool.ruff.lint.pycodestyle]
max-line-length = 120

[tool.ruff.isort]
[tool.ruff.lint.isort]
combine-as-imports = true
2 changes: 1 addition & 1 deletion scripts/check
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export SOURCE_FILES="httpcore tests"

set -x

${PREFIX}ruff check --show-source $SOURCE_FILES
${PREFIX}ruff format $SOURCE_FILES --diff
${PREFIX}mypy $SOURCE_FILES
${PREFIX}ruff check $SOURCE_FILES
${PREFIX}python scripts/unasync.py --check
1 change: 1 addition & 0 deletions tests/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
We don't do any smarts around cancellations, or managing exceptions from
childen, because we don't need that for our use-case.
"""

import threading
from types import TracebackType
from typing import Any, Callable, List, Optional, Type
Expand Down

0 comments on commit 6b586a2

Please sign in to comment.