Skip to content

Commit 3829c84

Browse files
[pre-commit.ci] pre-commit autoupdate (#90)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chris Sewell <[email protected]>
1 parent ba0c31e commit 3829c84

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ exclude: >
1212
repos:
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.4.0
15+
rev: v4.5.0
1616
hooks:
1717
- id: check-json
1818
- id: check-yaml
1919
- id: end-of-file-fixer
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/PyCQA/isort
23-
rev: 5.12.0
23+
rev: 5.13.2
2424
hooks:
2525
- id: isort
2626

2727
- repo: https://github.com/psf/black
28-
rev: 23.3.0
28+
rev: 23.12.1
2929
hooks:
3030
- id: black
3131

32-
- repo: https://github.com/charliermarsh/ruff-pre-commit
33-
rev: v0.0.270
32+
- repo: https://github.com/astral-sh/ruff-pre-commit
33+
rev: v0.1.11
3434
hooks:
3535
- id: ruff
3636

3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v1.3.0
38+
rev: v1.8.0
3939
hooks:
4040
- id: mypy
4141
additional_dependencies: [markdown-it-py~=3.0]

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.8"
7+
38
python:
4-
version: "3.8"
59
install:
610
- method: pip
711
path: .

mdit_py_plugins/dollarmath/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def dollarmath_plugin(
7777
_label_renderer: Callable[[str], str]
7878
if label_renderer is None:
7979
_label_renderer = (
80-
lambda label: f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>' # noqa: E501
80+
lambda label: f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>'
8181
)
8282
else:
8383
_label_renderer = label_renderer

mdit_py_plugins/texmath/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str:
228228
"rex": re.compile(
229229
r"^`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)", re.M
230230
),
231-
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n', # noqa: E501
231+
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n',
232232
"tag": "```math",
233233
},
234234
{
@@ -328,7 +328,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str:
328328
{
329329
"name": "math_block_eqno",
330330
"rex": re.compile(r"^\${2}([^$]*?)\${2}\s*?\(([^)$\r\n]+?)\)", re.M),
331-
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n', # noqa: E501
331+
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n',
332332
"tag": "$$",
333333
},
334334
{

tests/test_footnote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def test_plugin_render():
443443
</li>
444444
</ol>
445445
</section>
446-
""" # noqa: E501
446+
"""
447447
)
448448
)
449449

0 commit comments

Comments
 (0)