From e725b5a17f46edad0f37b98b0faa526cafacdd95 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:38:55 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.15.12) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 213625e..409bea2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: mixed-line-ending @@ -13,7 +13,7 @@ repos: - id: check-toml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.4 + rev: v0.15.12 hooks: - id: ruff-format name: python format From 143f698638130c931ee1e177f575f0c57993cd4a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:40:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- rst_to_myst/states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rst_to_myst/states.py b/rst_to_myst/states.py index 84dfb91..c6a6a4a 100644 --- a/rst_to_myst/states.py +++ b/rst_to_myst/states.py @@ -161,7 +161,7 @@ def directive(self, match, **option_presets): ) = self.parse_directive_block(indented, line_offset, directive_class) except states.MarkupError as error: self.reporter.warning( - f'Error in {type_name!r} directive parse:\n{" ".join(error.args)}', + f"Error in {type_name!r} directive parse:\n{' '.join(error.args)}", nodes.literal_block(block_text, block_text), line=lineno, )