Skip to content

Commit ce1892b

Browse files
authored
Merge pull request #130 from cclauss/pre-commit-autoupdate-2025-11-25
pre-commit autoupdate 2025-11-25
2 parents ef4dc51 + b4a9dc1 commit ce1892b

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-yaml
66
- id: debug-statements
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
99
- repo: https://github.com/pycqa/isort
10-
rev: 5.13.2
10+
rev: 7.0.0
1111
hooks:
1212
- id: isort
1313
- repo: https://github.com/psf/black
14-
rev: 24.4.2
14+
rev: 25.11.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.16.0
18+
rev: v3.21.2
1919
hooks:
2020
- id: pyupgrade
2121
args: [--py38-plus]
2222
- repo: https://github.com/pycqa/flake8
23-
rev: 7.1.0
23+
rev: 7.3.0
2424
hooks:
2525
- id: flake8
2626
exclude: ^(tests/|docs/|setup.py)
2727
additional_dependencies:
2828
- flake8-docstrings
2929
- repo: https://github.com/asottile/setup-cfg-fmt
30-
rev: v2.5.0
30+
rev: v3.1.0
3131
hooks:
3232
- id: setup-cfg-fmt
33-
args: [--include-version-classifiers]
33+
args: [--include-version-classifiers, --min-py-version=3.8]
3434
#- repo: https://github.com/pre-commit/mirrors-mypy
3535
# rev: v0.910-1
3636
# hooks:

docs/source/narrative.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ URIs, and finally there's an API to build URIs.
1818
|rfc3986| parses URIs much differently from :mod:`urllib.parse` so users may
1919
see some subtle differences with very specific URLs that contain rough
2020
edgecases. Regardless, we do our best to implement the same API so you should
21-
be able to seemlessly swap |rfc3986| for ``urlparse``.
21+
be able to seamlessly swap |rfc3986| for ``urlparse``.
2222

2323

2424
.. toctree::

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ license_files = LICENSE
1212
classifiers =
1313
Development Status :: 5 - Production/Stable
1414
Intended Audience :: Developers
15-
License :: OSI Approved :: Apache Software License
1615
Natural Language :: English
1716
Programming Language :: Python
1817
Programming Language :: Python :: 3
@@ -22,6 +21,8 @@ classifiers =
2221
Programming Language :: Python :: 3.10
2322
Programming Language :: Python :: 3.11
2423
Programming Language :: Python :: 3.12
24+
Programming Language :: Python :: 3.13
25+
Programming Language :: Python :: 3.14
2526
Programming Language :: Python :: Implementation :: CPython
2627
project_urls =
2728
Source = https://github.com/python-hyper/rfc3986

src/rfc3986/abnf_regexp.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,20 @@
195195

196196
# Only wide-unicode gets the high-ranges of UCSCHAR
197197
if sys.maxunicode > 0xFFFF: # pragma: no cover
198-
IPRIVATE = "\uE000-\uF8FF\U000F0000-\U000FFFFD\U00100000-\U0010FFFD"
198+
IPRIVATE = "\ue000-\uf8ff\U000f0000-\U000ffffd\U00100000-\U0010fffd"
199199
UCSCHAR_RE = (
200-
"\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF"
201-
"\U00010000-\U0001FFFD\U00020000-\U0002FFFD"
202-
"\U00030000-\U0003FFFD\U00040000-\U0004FFFD"
203-
"\U00050000-\U0005FFFD\U00060000-\U0006FFFD"
204-
"\U00070000-\U0007FFFD\U00080000-\U0008FFFD"
205-
"\U00090000-\U0009FFFD\U000A0000-\U000AFFFD"
206-
"\U000B0000-\U000BFFFD\U000C0000-\U000CFFFD"
207-
"\U000D0000-\U000DFFFD\U000E1000-\U000EFFFD"
200+
"\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef"
201+
"\U00010000-\U0001fffd\U00020000-\U0002fffd"
202+
"\U00030000-\U0003fffd\U00040000-\U0004fffd"
203+
"\U00050000-\U0005fffd\U00060000-\U0006fffd"
204+
"\U00070000-\U0007fffd\U00080000-\U0008fffd"
205+
"\U00090000-\U0009fffd\U000a0000-\U000afffd"
206+
"\U000b0000-\U000bfffd\U000c0000-\U000cfffd"
207+
"\U000d0000-\U000dfffd\U000e1000-\U000efffd"
208208
)
209209
else: # pragma: no cover
210-
IPRIVATE = "\uE000-\uF8FF"
211-
UCSCHAR_RE = "\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF"
210+
IPRIVATE = "\ue000-\uf8ff"
211+
UCSCHAR_RE = "\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef"
212212

213213
IUNRESERVED_RE = "A-Za-z0-9\\._~\\-" + UCSCHAR_RE
214214
IPCHAR = "([" + IUNRESERVED_RE + SUB_DELIMITERS_RE + ":@]|%s)" % PCT_ENCODED

0 commit comments

Comments
 (0)