format (#3131)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by T-256 · committed by GitHub · parent f3eb3c9 · Browse files · 9 files·+11 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: T-256 <Tester@test.com>
Diff stats
9 files+11 added−5 removed
- tests:+4 added−2 removed
- other:+7 added−3 removed
Provenance
- Commit
0006ed0- Tree
7d2b98c- Author
T-256 <132141463+T-256@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
f3eb3c9
9 files changed+11 added−5 removed
modified:httpx/_transports/default.py+1 added
21 unmodified lines22 # Using advanced httpcore configuration, with unix domain sockets.23 transport = httpx.HTTPTransport(uds="socket.uds")24 client = httpx.Client(transport=transport)25 """26+27 from __future__ import annotations28 29 import contextlib30 import typing358 unmodified linesmodified:httpx/_compat.py+1 added
1 """2 The _compat module is used for code which requires branching between different3 Python environments. It is excluded from the code coverage checks.4 """5+6 import ssl7 import sys8 9 # Brotli support is optional33 unmodified linesmodified:httpx/_decoders.py+1 added
1 unmodified line2 Handlers for Content-Encoding.3 4 See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding5 """6+7 from __future__ import annotations8 9 import codecs10 import io320 unmodified linesmodified:httpx/_exceptions.py+1 added
28 unmodified lines29 x StreamClosed30 x ResponseNotRead31 x RequestNotRead32 """33+34 from __future__ import annotations35 36 import contextlib37 import typing342 unmodified linesmodified:httpx/_urlparse.py+1 added
13 unmodified lines14 Previously we relied on the excellent `rfc3986` package to handle URL parsing and15 validation, but this module provides a simpler alternative, with less indirection16 required.17 """18+19 from __future__ import annotations20 21 import ipaddress22 import re481 unmodified linesmodified:tests/client/test_auth.py+1 added
1 unmodified line2 Integration tests for authentication.3 4 Unit tests for auth classes also exist in tests/test_auth.py5 """6+7 import hashlib8 import netrc9 import os10 import sys785 unmodified linesmodified:tests/test_auth.py+1 added
1 unmodified line2 Unit tests for auth classes.3 4 Integration tests also exist in tests/client/test_auth.py5 """6+7 from urllib.request import parse_keqv_list8 9 import pytest10 298 unmodified linesmodified:tests/test_multipart.py+2 added-2 removed
460 unmodified lines461 request = httpx.Request("GET", "https://www.example.com", files=files)462 assert expected in request.read()463 464 def test_unicode_with_control_character(self):465- filename = "hello\x1A\x1B\x1C"466- expected = b'filename="hello%1A\x1B%1C"'465+ filename = "hello\x1a\x1b\x1c"466+ expected = b'filename="hello%1A\x1b%1C"'467 files = {"upload": (filename, b"<file content>")}468 request = httpx.Request("GET", "https://www.example.com", files=files)469 assert expected in request.read()modified:pyproject.toml+2 added-3 removed
91 unmodified lines92 [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]93 pattern = 'src="(docs/img/.*?)"'94 replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'95 96-# https://beta.ruff.rs/docs/configuration/#using-rufftoml97-[tool.ruff]96+[tool.ruff.lint]97 select = ["E", "F", "I", "B", "PIE"]98 ignore = ["B904", "B028"]99 101-[tool.ruff.isort]100+[tool.ruff.lint.isort]101 combine-as-imports = true102 103 [tool.ruff.lint.per-file-ignores]104 "__init__.py" = ["F403", "F405"]26 unmodified lines