Skip to content
Myr

Use ruff format (#2901)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kar Petrosyan · committed by GitHub · parent 05937f4 · Browse files · 5 files+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+8 added−6 removed

  • other:+8 added−6 removed

5 files+8 added−6 removed

modified:httpx/_transports/default.py+1 added-1 removed
62 unmodified lines
63@contextlib.contextmanager64def map_httpcore_exceptions() -> typing.Iterator[None]:65 try:66 yield67 except Exception as exc: # noqa: PIE-78667 except Exception as exc:68 mapped_exc = None6970 for from_exc, to_exc in HTTPCORE_EXC_MAP.items():71 if not isinstance(exc, from_exc):
307 unmodified lines
modified:scripts/check+1 added-1 removed
7 unmodified lines
89set -x1011./scripts/sync-version12${PREFIX}black --check --diff $SOURCE_FILES12${PREFIX}ruff format $SOURCE_FILES --diff13${PREFIX}mypy $SOURCE_FILES14${PREFIX}ruff check $SOURCE_FILES
modified:scripts/lint+1 added-1 removed
7 unmodified lines
89set -x1011${PREFIX}ruff --fix $SOURCE_FILES12${PREFIX}black $SOURCE_FILES12${PREFIX}ruff format $SOURCE_FILES
modified:pyproject.toml+4 added-1 removed
modified:requirements.txt+1 added-2 removed
17 unmodified lines
18build==0.10.019twine==4.0.22021# Tests & Linting22black==23.9.122coverage[toml]==7.3.023cryptography==41.0.424mypy==1.5.125types-certifi==2021.10.8.226pytest==7.4.328ruff==0.0.29127ruff==0.1.328trio==0.22.229trio-typing==0.9.030trustme==1.1.031uvicorn==0.22.0