Skip to content

Commit 5ebb567

Browse files
pre-commit autoupdate
1 parent 45f84b9 commit 5ebb567

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/executablebooks/mdformat
3-
rev: 08fba30538869a440b5059de90af03e3502e35fb # frozen: 0.7.17
3+
rev: ff29be1a1ba8029d9375882aa2c812b62112a593 # frozen: 0.7.22
44
hooks:
55
- id: mdformat
66
additional_dependencies:
@@ -14,11 +14,11 @@ repos:
1414
- flake8-builtins
1515
- flake8-comprehensions
1616
- repo: https://github.com/PyCQA/isort
17-
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
17+
rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # frozen: 6.0.0
1818
hooks:
1919
- id: isort
2020
- repo: https://github.com/psf/black-pre-commit-mirror
21-
rev: c53240a7f974b3707e13eac6710542cc96a2d61a # frozen: 24.10.0
21+
rev: a4920527036bb9a3f3e6055d595849d67d0da066 # frozen: 25.1.0
2222
hooks:
2323
- id: black
2424
- repo: https://github.com/hukkin/docformatter
@@ -44,7 +44,7 @@ repos:
4444
- flake8-builtins
4545
- flake8-comprehensions
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: d4911cfb7f1010759fde68da196036feeb25b99d # frozen: v1.11.2
47+
rev: bbc3dc1f890007061f18f17e2334f216ea9e5df7 # frozen: v1.14.1
4848
hooks:
4949
- id: mypy
5050
args: ["--scripts-are-modules"]

tests/test_encode.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"%00%FF", "%00%FF", id="should preserve non-utf8 encoded characters"
2020
),
2121
pytest.param(
22-
"\x00\x7F\x80",
22+
"\x00\x7f\x80",
2323
"%00%7F%C2%80",
2424
id="should encode characters on the cache borders",
2525
), # protects against off-by-one in cache implementation
@@ -38,12 +38,12 @@ def test_encode_arguments():
3838

3939
def test_encode_surrogates():
4040
# bad surrogates (high)
41-
assert encode("\uD800foo") == "%EF%BF%BDfoo"
42-
assert encode("foo\uD800") == "foo%EF%BF%BD"
41+
assert encode("\ud800foo") == "%EF%BF%BDfoo"
42+
assert encode("foo\ud800") == "foo%EF%BF%BD"
4343

4444
# bad surrogates (low)
45-
assert encode("\uDD00foo") == "%EF%BF%BDfoo"
46-
assert encode("foo\uDD00") == "foo%EF%BF%BD"
45+
assert encode("\udd00foo") == "%EF%BF%BDfoo"
46+
assert encode("foo\udd00") == "foo%EF%BF%BD"
4747

4848
# valid one
4949
# (the codepoint is "D800 DD00" in UTF-16BE)

0 commit comments

Comments
 (0)