]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
format (#3131)
authorT-256 <132141463+T-256@users.noreply.github.com>
Fri, 1 Mar 2024 19:49:23 +0000 (23:19 +0330)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 19:49:23 +0000 (19:49 +0000)
Co-authored-by: T-256 <Tester@test.com>
httpx/_compat.py
httpx/_decoders.py
httpx/_exceptions.py
httpx/_transports/default.py
httpx/_urlparse.py
pyproject.toml
tests/client/test_auth.py
tests/test_auth.py
tests/test_multipart.py

index 493e6210873f325422e0b2087827bd8c95e70e56..27ccc6827333cbf91584a4317e0b0c21c31a73d3 100644 (file)
@@ -2,6 +2,7 @@
 The _compat module is used for code which requires branching between different
 Python environments. It is excluded from the code coverage checks.
 """
+
 import ssl
 import sys
 
index 31c72c7f7a3c75cc356709c5faa532df5361e3e0..f9d3adbb5d5c3caa4eb88b4f1c3711fa84cfe40d 100644 (file)
@@ -3,6 +3,7 @@ Handlers for Content-Encoding.
 
 See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
 """
+
 from __future__ import annotations
 
 import codecs
index 18dfa2f2b72b2d8ea8dae7a79247e0db133d2b30..77f45a6d3986d15626fc8a5fd459d6a3e0fbe466 100644 (file)
@@ -30,6 +30,7 @@ Our exception hierarchy:
   x ResponseNotRead
   x RequestNotRead
 """
+
 from __future__ import annotations
 
 import contextlib
index e82104e9d62c55309a7cd0d3346ff923a39189d9..bcc8bf422b6b993fe967df654dff5ee28161df41 100644 (file)
@@ -23,6 +23,7 @@ client = httpx.Client(transport=transport)
 transport = httpx.HTTPTransport(uds="socket.uds")
 client = httpx.Client(transport=transport)
 """
+
 from __future__ import annotations
 
 import contextlib
index 6a4b55b38c0780d6ab9e28b779076c91e880d598..232269ee4dbffb94b54bdc59b4a0dee969f9f96a 100644 (file)
@@ -15,6 +15,7 @@ Previously we relied on the excellent `rfc3986` package to handle URL parsing an
 validation, but this module provides a simpler alternative, with less indirection
 required.
 """
+
 from __future__ import annotations
 
 import ipaddress
index 3fe24a14d63334daec57d32018f390542f2536da..9e6464c23a87a7dc1b925dea4842ef7254371ca4 100644 (file)
@@ -93,12 +93,11 @@ text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CH
 pattern = 'src="(docs/img/.*?)"'
 replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'
 
-# https://beta.ruff.rs/docs/configuration/#using-rufftoml
-[tool.ruff]
+[tool.ruff.lint]
 select = ["E", "F", "I", "B", "PIE"]
 ignore = ["B904", "B028"]
 
-[tool.ruff.isort]
+[tool.ruff.lint.isort]
 combine-as-imports = true
 
 [tool.ruff.lint.per-file-ignores]
index e6bac23dfc487681b8335e316babe55cf0716f0b..5776fc33ba19e72d9a0ad44b9902d6cf7af98466 100644 (file)
@@ -3,6 +3,7 @@ Integration tests for authentication.
 
 Unit tests for auth classes also exist in tests/test_auth.py
 """
+
 import hashlib
 import netrc
 import os
index 7bb45de5663dbd768eaa98296092420e1b06c90e..6b6df922ead467fb5ca147140941297f52360860 100644 (file)
@@ -3,6 +3,7 @@ Unit tests for auth classes.
 
 Integration tests also exist in tests/client/test_auth.py
 """
+
 from urllib.request import parse_keqv_list
 
 import pytest
index 5c4629152c09d93ff8ca50331761e9ae41af2b06..764f85a253076731d802dc2a81af8e226c0a31f7 100644 (file)
@@ -462,8 +462,8 @@ class TestHeaderParamHTML5Formatting:
         assert expected in request.read()
 
     def test_unicode_with_control_character(self):
-        filename = "hello\x1A\x1B\x1C"
-        expected = b'filename="hello%1A\x1B%1C"'
+        filename = "hello\x1a\x1b\x1c"
+        expected = b'filename="hello%1A\x1b%1C"'
         files = {"upload": (filename, b"<file content>")}
         request = httpx.Request("GET", "https://www.example.com", files=files)
         assert expected in request.read()