-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop python3.8, python3.9 support, bump anyio to 4.0
- Loading branch information
1 parent
4da9549
commit 17f498a
Showing
23 changed files
with
215 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
black | ||
flake8 | ||
isort | ||
ruff | ||
mypy | ||
pyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
line-length = 120 | ||
src = ["src", "."] | ||
select = [ | ||
"F", # Pyflakes | ||
"E", # Pycodestyle Error | ||
"W", # PycodeStyle Warning | ||
"I", # Isort | ||
"N", # pep8-naming | ||
"UP", # pyupgrade | ||
"YTT", # flake8-2020 | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"DTZ", # flake8-datetimez | ||
"T10", # flake8-debugger | ||
"ISC", # flake8-implicit-str-concat | ||
"G", # flake8-logging-format | ||
"PIE", # flake8-pie | ||
"T20", # flake8-print | ||
"PYI", # flake8-pyi | ||
"Q", # flake8-quotes | ||
"RSE", # flake8-raise | ||
"RET", # flake8-return | ||
"SIM", # flake8-simplify | ||
"TID", # flake8-tidy-imports | ||
"PTH", # flake8-use-pathlib | ||
"TD", # flake8-todos | ||
"PGH", # pygrep-hooks | ||
"PL", # Pylint | ||
"TRY", # tryceratops | ||
"RUF", # Ruff-specific rules | ||
] | ||
ignore = [ | ||
"B005", # strip-with-multi-characters | ||
"B905", # zip-without-explicit-strict | ||
"N818", # error-suffix-on-exception-name | ||
"Q003", # avoidable-escaped-quote | ||
"SIM108", # if-else-block-instead-of-if-exp | ||
"SIM212", # if-expr-with-twisted-arms | ||
"PTH123", # builtin-open | ||
"TD002", # missing-todo-author | ||
"PLR0911", # too-many-return-statements | ||
"PLR0912", # too-many-branches | ||
"PLR0913", # too-many-arguments | ||
"PLR0915", # too-many-statements | ||
"PLR2004", # magic-value-comparison | ||
"PLW2901", # redefined-loop-name | ||
"SIM300", # yoda-conditions | ||
"TID252", # relative-imports | ||
"PGH004", # blanket-noqa | ||
"TRY002", # raise-vanilla-class | ||
"TRY003", # raise-vanilla-args | ||
"TRY200", # reraise-no-cause | ||
"RUF001", # ambiguous-unicode-character-string | ||
"RUF002", # ambiguous-unicode-character-docstring | ||
"RUF003", # ambiguous-unicode-character-comment | ||
"RUF005", # collection-literal-concatenation | ||
"RUF006", # asyncio-dangling-task | ||
"RUF012", # mutable-class-default | ||
"RET504", # unnecessary-assign | ||
] | ||
target-version = "py310" | ||
|
||
[per-file-ignores] | ||
"tests*/**/*.py" = [ | ||
"N", # pep8-naming | ||
] | ||
|
||
[isort] | ||
combine-as-imports = true | ||
no-lines-before = ["local-folder"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import asyncio | ||
from typing import AsyncIterator, TypeVar | ||
from collections.abc import AsyncIterator | ||
from typing import TypeVar | ||
|
||
T = TypeVar("T") | ||
_T = TypeVar("_T") | ||
|
||
|
||
async def queue_to_iterator(queue: "asyncio.Queue[T]") -> AsyncIterator[T]: | ||
async def queue_to_iterator(queue: asyncio.Queue[_T]) -> AsyncIterator[_T]: | ||
while True: | ||
yield await queue.get() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.