Skip to content

Commit 3365e1c

Browse files
committed
fix: resolve missing gfm package
1 parent b963454 commit 3365e1c

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

mdformat_mkdocs/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def add_cli_argument_group(group: argparse._ArgumentGroup) -> None:
7272
"--align-semantic-breaks-in-lists",
7373
action="store_const",
7474
const=True,
75-
help="If specified, align semantic indents in numbered and bulleted lists to the text", # noqa: E501
75+
help="If specified, align semantic indents in numbered and bulleted lists to the text",
7676
)
7777
group.add_argument(
7878
"--ignore-missing-references",
7979
action="store_const",
8080
const=True,
81-
help="If set, do not escape link references when no definition is found. This is required when references are dynamic, such as with python mkdocstrings", # noqa: E501
81+
help="If set, do not escape link references when no definition is found. This is required when references are dynamic, such as with python mkdocstrings",
8282
)
8383

8484

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ ignore = [
101101
'ANN002', # Missing type annotation for `*args`
102102
'ANN003', # Missing type annotation for `**kwargs`
103103
'BLE001', # Do not catch blind exception: `Exception`
104+
'COM812', # missing-trailing-comma
104105
'CPY001', # Missing copyright notice at top of file
105106
'D203', # "1 blank line required before class docstring" (Conflicts with D211)
106107
'D213', # "Multi-line docstring summary should start at the second line" (Conflicts with D212)
107108
'DOC201', # `return` is not documented in docstring
108109
'DOC402', # `yield` is not documented in docstring
110+
'E501', # Line too long (89 > 88)
109111
'EM101', # Exception must not use a string literal, assign to variable first
110112
'FBT001', # Boolean-typed positional argument in function definition
111113
'FIX001', # Line contains FIXME

tests/format/test_wrap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,6 @@ def test_definition_list_nested_indentation():
340340
if line.strip().startswith("-"):
341341
spaces = len(line) - len(line.lstrip())
342342
# Spaces before '-' should be 4, 8, or 12 (multiples of 4)
343-
assert spaces in [4, 8, 12], f"Expected 4/8/12 spaces, got {spaces} in: {line!r}"
343+
assert spaces in {4, 8, 12}, (
344+
f"Expected 4/8/12 spaces, got {spaces} in: {line!r}"
345+
)

tests/pre-commit-test.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Testing `mdformat-mkdocs` as a `pre-commit`/`prek` hook (`tox -e py#-hook`)
44

55
# Table
66

7-
| Label | Rating | Comment |
7+
| Label | Rating | Comment |
88
| :---- | -----: | :--------------- |
9-
| Name | 2 | <!-- Comment --> |
9+
| Name | 2 | <!-- Comment --> |
1010

1111
## Floating Link
1212

@@ -314,8 +314,8 @@ ______________________________________________________________________
314314

315315
| Left-aligned | Center-aligned | Right-aligned |
316316
| :----------- | :------------: | ------------: |
317-
| git status | git status | git status |
318-
| git diff | git diff | git diff |
317+
| git status | git status | git status |
318+
| git diff | git diff | git diff |
319319

320320
______________________________________________________________________
321321

tests/test_mdformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_mdformat_text():
88
pth = Path(__file__).parent / "pre-commit-test.md"
99
content = pth.read_text()
1010

11-
result = mdformat.text(content, extensions={"mkdocs"})
11+
result = mdformat.text(content, extensions={"mkdocs", "gfm"})
1212

1313
pth.write_text(result) # Easier to debug with git
1414
assert result == content, "Differences found in format. Review in git."

0 commit comments

Comments
 (0)