From 5d51a816460f93bbefce8b6e2ecfbeb5a3d5dae6 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Wed, 6 May 2026 17:36:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 6 +++--- markdown_it/main.py | 2 +- markdown_it/tree.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33f30b12..04230b02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-json - id: check-yaml @@ -24,14 +24,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.8 + rev: v0.15.12 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.20.2 hooks: - id: mypy additional_dependencies: [mdurl, typing-extensions] diff --git a/markdown_it/main.py b/markdown_it/main.py index 90289730..87835e54 100644 --- a/markdown_it/main.py +++ b/markdown_it/main.py @@ -126,7 +126,7 @@ def configure( if options_update: options = {**options, **options_update} # type: ignore - self.set(options) # type: ignore + self.set(options) if "components" in config: for name, component in config["components"].items(): diff --git a/markdown_it/tree.py b/markdown_it/tree.py index 5369157b..24bc2466 100644 --- a/markdown_it/tree.py +++ b/markdown_it/tree.py @@ -274,7 +274,7 @@ def _attribute_token(self) -> Token: @property def tag(self) -> str: - """html tag name, e.g. \"p\" """ + """html tag name, e.g. \"p\"""" return self._attribute_token().tag @property