Skip to content

Commit 9402699

Browse files
committed
ci: run autoformatter
1 parent 2500c8b commit 9402699

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

mdformat_mkdocs/_normalize_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def _format_new_content(line: LineResult, inc_numbers: bool, is_code: bool) -> s
362362
base_num = 0 if first_peer.content.startswith("0.") else 1
363363
counter = len(line.prev_list_peers) + base_num if inc_numbers else base_num
364364
new_bullet = f"{counter}."
365-
new_content = f'{new_bullet} {list_match["item"]}'
365+
new_content = f"{new_bullet} {list_match['item']}"
366366

367367
return new_content
368368

mdformat_mkdocs/_postprocess_inline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from typing import TYPE_CHECKING
6+
67
from mdformat.renderer import WRAP_POINT
78

89
from ._helpers import FILLER_CHAR, MKDOCS_INDENT_COUNT, get_conf, rstrip_result

mdformat_mkdocs/mdit_plugins/_mkdocstrings_crossreference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _mkdocstrings_crossreference(state: StateInline, silent: bool) -> bool:
3535
state.pos += 1
3636
state.posMax = state.pos + len(match["link"])
3737
with new_token(state, MKDOCSTRINGS_CROSSREFERENCE_PREFIX, "a") as token:
38-
token.attrs = {"href": f'#{match["href"] or match["link"]}'}
38+
token.attrs = {"href": f"#{match['href'] or match['link']}"}
3939
token.meta = {"content": match.group()}
4040

4141
state.linkLevel += 1

mdformat_mkdocs/mdit_plugins/_pymd_abbreviations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _pymd_abbreviations(
8383
with new_token(state, PYMD_ABBREVIATIONS_PREFIX, "p"):
8484
tkn_inline = state.push("inline", "", 0)
8585
tkn_inline.content = "\n".join(
86-
[f'*[{match["label"]}]: {match["description"]}' for match in matches],
86+
[f"*[{match['label']}]: {match['description']}" for match in matches],
8787
)
8888
tkn_inline.map = [start_line, max_line]
8989
tkn_inline.children = []

mdformat_mkdocs/mdit_plugins/_python_markdown_attr_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _python_markdown_attr_list(state: StateInline, silent: bool) -> bool:
4141
state.pos += 1
4242
state.posMax = state.pos + (match.end() - len(" }"))
4343
with new_token(state, PYTHON_MARKDOWN_ATTR_LIST_PREFIX, "span") as token:
44-
token.attrs = {"attributes": match["attrs"].split(" ")}
44+
token.attrs = {"attributes": match["attrs"].split(" ")} # type: ignore[dict-item]
4545
token.meta = {"content": match.group()}
4646

4747
state.md.inline.tokenize(state)

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ ignore_patterns = []
8585
now = true
8686
patterns = ["*.ambr", "*.md", "*.py"]
8787
runner = "tox"
88-
# FIXME: requires
8988
# PLANNED: requires support for TYPE_CHECKING https://github.com/beartype/beartype/issues/477
9089
# runner_args = ["-e", "py312-test", "--", "--exitfirst", "--failed-first", "--new-first", "-vv", "--beartype-packages=mdformat_mkdocs", "--snapshot-update"]
9190
runner_args = ["-e", "py312-test", "--", "--exitfirst", "--failed-first", "--new-first", "-vv", "--snapshot-update"]

tests/format/test_wrap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
{: .class1 .class2 .class3 .class4 .class5 .class6 .class7 .class8 .class9 .class10 .class11 .class12 .class13 .class14 .class15 .class16 .class17 .class18 .class19 .class20 }
189189
"""
190190

191+
191192
@pytest.mark.parametrize(
192193
("text", "expected", "align_lists", "wrap"),
193194
[

0 commit comments

Comments
 (0)