Skip to content

Commit b77a18b

Browse files
authored
🔧 Fix pre-commit (#136)
1 parent 28a9778 commit b77a18b

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.12.8
23+
rev: v0.15.12
2424
hooks:
2525
- id: ruff
2626
args: [--fix]
2727
- id: ruff-format
2828

2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.17.1
30+
rev: v1.20.2
3131
hooks:
3232
- id: mypy
3333
additional_dependencies: [markdown-it-py~=3.0]

‎mdit_py_plugins/attrs/index.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _attr_block_rule(
209209
return False
210210

211211
try:
212-
new_pos, attrs = parse(state.src[pos:maximum])
212+
_new_pos, attrs = parse(state.src[pos:maximum])
213213
except ParseError:
214214
return False
215215

‎mdit_py_plugins/dollarmath/index.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def dollarmath_plugin(
7878
_label_renderer: Callable[[str], str]
7979
if label_renderer is None:
8080
_label_renderer = ( # noqa: E731
81-
lambda label: f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>'
81+
lambda label: (
82+
f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>'
83+
)
8284
)
8385
else:
8486
_label_renderer = label_renderer

0 commit comments

Comments
 (0)