diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c13db42..fa64590 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,7 @@ exclude: >
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.4.0
+ rev: v4.5.0
hooks:
- id: check-json
- id: check-yaml
@@ -20,22 +20,22 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
- rev: 5.12.0
+ rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
- rev: 23.3.0
+ rev: 23.12.1
hooks:
- id: black
- - repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.270
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.1.11
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.3.0
+ rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [markdown-it-py~=3.0]
diff --git a/.readthedocs.yml b/.readthedocs.yml
index f322eba..cff72c5 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -1,7 +1,11 @@
version: 2
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.8"
+
python:
- version: "3.8"
install:
- method: pip
path: .
diff --git a/mdit_py_plugins/dollarmath/index.py b/mdit_py_plugins/dollarmath/index.py
index 2cd7c3f..aebd3ea 100644
--- a/mdit_py_plugins/dollarmath/index.py
+++ b/mdit_py_plugins/dollarmath/index.py
@@ -77,7 +77,7 @@ def dollarmath_plugin(
_label_renderer: Callable[[str], str]
if label_renderer is None:
_label_renderer = (
- lambda label: f'¶' # noqa: E501
+ lambda label: f'¶'
)
else:
_label_renderer = label_renderer
diff --git a/mdit_py_plugins/texmath/index.py b/mdit_py_plugins/texmath/index.py
index 168d46e..63a169d 100644
--- a/mdit_py_plugins/texmath/index.py
+++ b/mdit_py_plugins/texmath/index.py
@@ -228,7 +228,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str:
"rex": re.compile(
r"^`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)", re.M
),
- "tmpl": '\n', # noqa: E501
+ "tmpl": '\n',
"tag": "```math",
},
{
@@ -328,7 +328,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str:
{
"name": "math_block_eqno",
"rex": re.compile(r"^\${2}([^$]*?)\${2}\s*?\(([^)$\r\n]+?)\)", re.M),
- "tmpl": '\n', # noqa: E501
+ "tmpl": '\n',
"tag": "$$",
},
{
diff --git a/tests/test_footnote.py b/tests/test_footnote.py
index e543c14..fb9bf9d 100644
--- a/tests/test_footnote.py
+++ b/tests/test_footnote.py
@@ -443,7 +443,7 @@ def test_plugin_render():
- """ # noqa: E501
+ """
)
)