From b42a6ef6da0897a2ed91a7ba53a9575bf005d479 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:24:36 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f42e2f7..40ae9e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/asottile/pyupgrade From 86fc85f2746a55907c70f062fd30dd1f96bf79ae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:24:45 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/rfc3986/__init__.py | 1 + src/rfc3986/abnf_regexp.py | 1 + src/rfc3986/api.py | 1 + src/rfc3986/builder.py | 1 + src/rfc3986/compat.py | 1 + src/rfc3986/misc.py | 1 + src/rfc3986/normalizers.py | 1 + src/rfc3986/parseresult.py | 1 + src/rfc3986/validators.py | 1 + tests/test_builder.py | 1 + 10 files changed, 10 insertions(+) diff --git a/src/rfc3986/__init__.py b/src/rfc3986/__init__.py index e71de1f..330c5c5 100644 --- a/src/rfc3986/__init__.py +++ b/src/rfc3986/__init__.py @@ -19,6 +19,7 @@ :copyright: (c) 2014 Rackspace :license: Apache v2.0, see LICENSE for details """ + from .api import IRIReference from .api import URIReference from .api import iri_reference diff --git a/src/rfc3986/abnf_regexp.py b/src/rfc3986/abnf_regexp.py index 429e724..b18d158 100644 --- a/src/rfc3986/abnf_regexp.py +++ b/src/rfc3986/abnf_regexp.py @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module for the regular expressions crafted from ABNF.""" + import sys # https://tools.ietf.org/html/rfc3986#page-13 diff --git a/src/rfc3986/api.py b/src/rfc3986/api.py index 64bd957..66c12f7 100644 --- a/src/rfc3986/api.py +++ b/src/rfc3986/api.py @@ -17,6 +17,7 @@ This module defines functions and provides access to the public attributes and classes of rfc3986. """ + import typing as t from .iri import IRIReference diff --git a/src/rfc3986/builder.py b/src/rfc3986/builder.py index 68789db..f8f19aa 100644 --- a/src/rfc3986/builder.py +++ b/src/rfc3986/builder.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module containing the logic for the URIBuilder object.""" + import typing as t from urllib.parse import parse_qsl from urllib.parse import urlencode diff --git a/src/rfc3986/compat.py b/src/rfc3986/compat.py index b66e1db..28de355 100644 --- a/src/rfc3986/compat.py +++ b/src/rfc3986/compat.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Compatibility module for Python 2 and 3 support.""" + import typing as t __all__ = ( diff --git a/src/rfc3986/misc.py b/src/rfc3986/misc.py index 10d0ecb..c0291c8 100644 --- a/src/rfc3986/misc.py +++ b/src/rfc3986/misc.py @@ -17,6 +17,7 @@ This module contains important constants, patterns, and compiled regular expressions for parsing and validating URIs and their components. """ + import re import typing as t diff --git a/src/rfc3986/normalizers.py b/src/rfc3986/normalizers.py index 532bfaf..79b3585 100644 --- a/src/rfc3986/normalizers.py +++ b/src/rfc3986/normalizers.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module with functions to normalize components.""" + import re import typing as t from urllib.parse import quote as urlquote diff --git a/src/rfc3986/parseresult.py b/src/rfc3986/parseresult.py index 80cc300..551d1c6 100644 --- a/src/rfc3986/parseresult.py +++ b/src/rfc3986/parseresult.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module containing the urlparse compatibility logic.""" + import typing as t from collections import namedtuple diff --git a/src/rfc3986/validators.py b/src/rfc3986/validators.py index 0727586..d68f16b 100644 --- a/src/rfc3986/validators.py +++ b/src/rfc3986/validators.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module containing the validation logic for rfc3986.""" + import typing as t from . import exceptions diff --git a/tests/test_builder.py b/tests/test_builder.py index fb6ec3c..eae3ec3 100644 --- a/tests/test_builder.py +++ b/tests/test_builder.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Module containing the tests for the URIBuilder object.""" + try: from urllib.parse import parse_qs except ImportError: