From 4e6dc28f07ef5b217c0e046134640ae33e05414e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:34:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mdit_py_plugins/amsmath/__init__.py | 1 + mdit_py_plugins/attrs/parse.py | 1 + mdit_py_plugins/container/index.py | 1 + mdit_py_plugins/deflist/index.py | 1 + mdit_py_plugins/field_list/__init__.py | 1 + mdit_py_plugins/footnote/index.py | 1 + mdit_py_plugins/front_matter/index.py | 1 + 7 files changed, 7 insertions(+) diff --git a/mdit_py_plugins/amsmath/__init__.py b/mdit_py_plugins/amsmath/__init__.py index d2f71ca..8c9f1a1 100644 --- a/mdit_py_plugins/amsmath/__init__.py +++ b/mdit_py_plugins/amsmath/__init__.py @@ -1,4 +1,5 @@ """An extension to capture amsmath latex environments.""" + from __future__ import annotations import re diff --git a/mdit_py_plugins/attrs/parse.py b/mdit_py_plugins/attrs/parse.py index 6b03117..06539c2 100644 --- a/mdit_py_plugins/attrs/parse.py +++ b/mdit_py_plugins/attrs/parse.py @@ -19,6 +19,7 @@ class <- '.' name bareval <- (ASCII_ALPHANUM | ':' | '_' | '-')+ quotedval <- '"' ([^"] | '\"') '"' """ + from __future__ import annotations from enum import Enum diff --git a/mdit_py_plugins/container/index.py b/mdit_py_plugins/container/index.py index 454aa0e..61a7b03 100644 --- a/mdit_py_plugins/container/index.py +++ b/mdit_py_plugins/container/index.py @@ -1,4 +1,5 @@ """Process block-level custom containers.""" + from __future__ import annotations from math import floor diff --git a/mdit_py_plugins/deflist/index.py b/mdit_py_plugins/deflist/index.py index dd8a47b..f5d20d1 100644 --- a/mdit_py_plugins/deflist/index.py +++ b/mdit_py_plugins/deflist/index.py @@ -1,4 +1,5 @@ """Process definition lists.""" + from markdown_it import MarkdownIt from markdown_it.rules_block import StateBlock diff --git a/mdit_py_plugins/field_list/__init__.py b/mdit_py_plugins/field_list/__init__.py index 50bb907..6472cfd 100644 --- a/mdit_py_plugins/field_list/__init__.py +++ b/mdit_py_plugins/field_list/__init__.py @@ -1,4 +1,5 @@ """Field list plugin""" + from contextlib import contextmanager from typing import Iterator, Optional, Tuple diff --git a/mdit_py_plugins/footnote/index.py b/mdit_py_plugins/footnote/index.py index 6dc3602..fad0539 100644 --- a/mdit_py_plugins/footnote/index.py +++ b/mdit_py_plugins/footnote/index.py @@ -1,4 +1,5 @@ """Process footnotes""" + from __future__ import annotations from typing import TYPE_CHECKING, List, Optional, Sequence diff --git a/mdit_py_plugins/front_matter/index.py b/mdit_py_plugins/front_matter/index.py index 7ae67a8..1551d76 100644 --- a/mdit_py_plugins/front_matter/index.py +++ b/mdit_py_plugins/front_matter/index.py @@ -1,4 +1,5 @@ """Process front matter.""" + from markdown_it import MarkdownIt from markdown_it.rules_block import StateBlock