Skip to content

Commit

Permalink
🔧 update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Dec 27, 2024
1 parent b58737f commit 460dfe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.1
rev: v1.14.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
Expand Down
3 changes: 1 addition & 2 deletions myst_parser/parsers/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ def _scan_flow_scalar_non_spaces(
for k in range(length):
if stream.peek(k) not in "0123456789ABCDEFabcdef":
raise TokenizeError(
"expected escape sequence of %d hexadecimal numbers, but found %r"
% (length, stream.peek(k)),
f"expected escape sequence of {length} hexadecimal numbers, but found {stream.peek(k)!r}",
stream.get_position(),
"while scanning a double-quoted scalar",
start_mark,
Expand Down

0 comments on commit 460dfe8

Please sign in to comment.