Skip to content
Myr

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

9 files+11 added−5 removed

modified:httpx/_transports/default.py+1 added
21 unmodified lines
22# Using advanced httpcore configuration, with unix domain sockets.23transport = httpx.HTTPTransport(uds="socket.uds")24client = httpx.Client(transport=transport)25"""2627from __future__ import annotations2829import contextlib30import typing
358 unmodified lines
modified:httpx/_compat.py+1 added
1"""2The _compat module is used for code which requires branching between different3Python environments. It is excluded from the code coverage checks.4"""56import ssl7import sys89# Brotli support is optional
33 unmodified lines
modified:httpx/_decoders.py+1 added
1 unmodified line
2Handlers for Content-Encoding.34See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding5"""67from __future__ import annotations89import codecs10import io
320 unmodified lines
modified:httpx/_exceptions.py+1 added
28 unmodified lines
29 x StreamClosed30 x ResponseNotRead31 x RequestNotRead32"""3334from __future__ import annotations3536import contextlib37import typing
342 unmodified lines
modified:httpx/_urlparse.py+1 added
13 unmodified lines
14Previously we relied on the excellent `rfc3986` package to handle URL parsing and15validation, but this module provides a simpler alternative, with less indirection16required.17"""1819from __future__ import annotations2021import ipaddress22import re
481 unmodified lines
modified:tests/client/test_auth.py+1 added
1 unmodified line
2Integration tests for authentication.34Unit tests for auth classes also exist in tests/test_auth.py5"""67import hashlib8import netrc9import os10import sys
785 unmodified lines
modified:tests/test_auth.py+1 added
1 unmodified line
2Unit tests for auth classes.34Integration tests also exist in tests/client/test_auth.py5"""67from urllib.request import parse_keqv_list89import pytest10
298 unmodified lines
modified:tests/test_multipart.py+2 added-2 removed
460 unmodified lines
461 request = httpx.Request("GET", "https://www.example.com", files=files)462 assert expected in request.read()463464 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 lines
92[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]93pattern = 'src="(docs/img/.*?)"'94replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'9596# https://beta.ruff.rs/docs/configuration/#using-rufftoml97[tool.ruff]96[tool.ruff.lint]97select = ["E", "F", "I", "B", "PIE"]98ignore = ["B904", "B028"]99101[tool.ruff.isort]100[tool.ruff.lint.isort]101combine-as-imports = true102103[tool.ruff.lint.per-file-ignores]104"__init__.py" = ["F403", "F405"]
26 unmodified lines