Repository: encode/httpx (branch: network-options)
Commit date: 2024-01-12T12:14:15Z

Workflow file: .github/workflows/test-suite.yml (Test Suite)
---
name: Test Suite

on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]

jobs:
  tests:
    name: "Python ${{ matrix.python-version }}"
    runs-on: "ubuntu-latest"
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080

    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

    steps:
      - uses: "actions/checkout@v4"
      - uses: "actions/setup-python@v5"
        with:
          python-version: "${{ matrix.python-version }}"
          allow-prereleases: true
      - name: "Install dependencies"
        run: "scripts/install"
      - name: "Run linting checks"
        run: "scripts/check"
      - name: "Build package & docs"
        run: "scripts/build"
      - name: "Run tests"
        run: "scripts/test"
      - name: "Enforce coverage"
        run: "scripts/coverage"

env:
  PIP_INDEX_URL: http://localhost:8629/2024-01-12
  UV_INDEX_URL: http://localhost:8629/2024-01-12


Failed build logs:
step_name: Python 3.8/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
+ ./scripts/sync-version
CHANGELOG_VERSION: 0.26.0
VERSION: 0.26.0
+ ruff format httpx tests --diff
60 files already formatted
+ mypy httpx tests
Success: no issues found in 60 source files
+ ruff check httpx tests
httpx/_config.py:1:1: I001 [*] Import block is un-sorted or un-formatted
httpx/_transports/default.py:26:1: I001 [*] Import block is un-sorted or un-formatted
Found 2 errors.
[*] 2 fixable with the `--fix` option.
##[error]Process completed with exit code 1.

step_name: Python 3.9/5_Run linting checks.txt
log: ##[group]Run scripts/check
[36;1mscripts/check[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
##[endgroup]
+ ./scripts/sync-version
CHANGELOG_VERSION: 0.26.0
VERSION: 0.26.0
+ ruff format httpx tests --diff
60 files already formatted
+ mypy httpx tests
Success: no issues found in 60 source files
+ ruff check httpx tests
httpx/_config.py:1:1: I001 [*] Import block is un-sorted or un-formatted
httpx/_transports/default.py:26:1: I001 [*] Import block is un-sorted or un-formatted
Found 2 errors.
[*] 2 fixable with the `--fix` option.
##[error]Process completed with exit code 1.


Changed files:
httpx/_config.py
httpx/_transports/default.py

Fix diff:
diff --git a/httpx/_config.py b/httpx/_config.py
index 69c3c6f..1af8a45 100644
--- a/httpx/_config.py
+++ b/httpx/_config.py
@@ -12,7 +12,6 @@ from ._types import CertTypes, HeaderTypes, TimeoutTypes, URLTypes, VerifyTypes
 from ._urls import URL
 from ._utils import get_ca_bundle_from_env
 
-
 SOCKET_OPTION = typing.Union[
     typing.Tuple[int, int, int],
     typing.Tuple[int, int, typing.Union[bytes, bytearray]],
diff --git a/httpx/_transports/default.py b/httpx/_transports/default.py
index 7802026..0829b57 100644
--- a/httpx/_transports/default.py
+++ b/httpx/_transports/default.py
@@ -32,9 +32,9 @@ import httpcore
 from .._config import (
     DEFAULT_LIMITS,
     DEFAULT_NETWORK_OPTIONS,
-    Proxy,
     Limits,
     NetworkOptions,
+    Proxy,
     create_ssl_context,
 )
 from .._exceptions import (