Skip to content

Commit

Permalink
⬆️ Update pre-commit hooks
Browse files Browse the repository at this point in the history
* Reformat for isort 6
  • Loading branch information
veit committed Jan 29, 2025
1 parent 2f0f093 commit a3810b2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ repos:
- id: sphinx-lint
types: [rst]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
additional_dependencies: ["toml"]
entry: isort --profile=black
name: isort (python)
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/adamchainz/blacken-docs
Expand All @@ -45,7 +45,7 @@ repos:
additional_dependencies:
- black
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: [--toml pyproject.toml]
10 changes: 8 additions & 2 deletions docs/productive/qa/requests/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
import os.path
import socket

from urllib3.exceptions import ClosedPoolError, ConnectTimeoutError
from urllib3.exceptions import (
ClosedPoolError,
ConnectTimeoutError,
)
from urllib3.exceptions import HTTPError as _HTTPError
from urllib3.exceptions import (
LocationValueError,
Expand All @@ -20,7 +23,10 @@
ProtocolError,
)
from urllib3.exceptions import ProxyError as _ProxyError
from urllib3.exceptions import ReadTimeoutError, ResponseError
from urllib3.exceptions import (
ReadTimeoutError,
ResponseError,
)
from urllib3.exceptions import SSLError as _SSLError
from urllib3.poolmanager import PoolManager, proxy_from_url
from urllib3.response import HTTPResponse
Expand Down
7 changes: 6 additions & 1 deletion docs/productive/qa/requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@
is_py2,
)
from .compat import json as complexjson
from .compat import str, urlencode, urlsplit, urlunparse
from .compat import (
str,
urlencode,
urlsplit,
urlunparse,
)
from .cookies import _copy_cookie_jar, cookiejar_from_dict, get_cookie_header
from .exceptions import (
ChunkedEncodingError,
Expand Down

0 comments on commit a3810b2

Please sign in to comment.