Skip to content

Commit 0437558

Browse files
authored
🔧 update pre-commit (#1006)
1 parent b58737f commit 0437558

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.7.0
24+
rev: v0.8.4
2525
hooks:
2626
- id: ruff
2727
args: [--fix]
2828
- id: ruff-format
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.12.1
31+
rev: v1.14.0
3232
hooks:
3333
- id: mypy
3434
args: [--config-file=pyproject.toml]

myst_parser/parsers/options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ def _scan_flow_scalar_non_spaces(
427427
for k in range(length):
428428
if stream.peek(k) not in "0123456789ABCDEFabcdef":
429429
raise TokenizeError(
430-
"expected escape sequence of %d hexadecimal numbers, but found %r"
431-
% (length, stream.peek(k)),
430+
f"expected escape sequence of {length} hexadecimal numbers, but found {stream.peek(k)!r}",
432431
stream.get_position(),
433432
"while scanning a double-quoted scalar",
434433
start_mark,

0 commit comments

Comments
 (0)