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 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: