Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 8bd9551 commit 02836ba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/mdformat/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def make_arg_parser(
plugin_versions_str = get_plugin_versions_str(parser_extensions, codeformatters)
parser = argparse.ArgumentParser(
description="CommonMark compliant Markdown formatter",
epilog=f"Installed plugins: {plugin_versions_str}"
if plugin_versions_str
else None,
epilog=(
f"Installed plugins: {plugin_versions_str}" if plugin_versions_str else None
),
)
parser.add_argument("paths", nargs="*", help="files to format")
parser.add_argument(
Expand Down
1 change: 1 addition & 0 deletions src/mdformat/codepoints/_unicode_punctuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Run this module to generate and print an up-to-date set of characters.
"""

UNICODE_PUNCTUATION = frozenset(
(
"!",
Expand Down
1 change: 1 addition & 0 deletions src/mdformat/codepoints/_unicode_whitespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Run this module to generate and print an up-to-date set of characters.
"""

UNICODE_WHITESPACE = frozenset(
(
"\t",
Expand Down
8 changes: 5 additions & 3 deletions tests/test_commonmark_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@
"entry",
ALL_CASES,
ids=[
c.values[0]["name"] # type: ignore[index]
if isinstance(c, ParameterSet)
else c["name"]
(
c.values[0]["name"] # type: ignore[index]
if isinstance(c, ParameterSet)
else c["name"]
)
for c in ALL_CASES
],
)
Expand Down
1 change: 1 addition & 0 deletions tests/test_for_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- `tox -e profile`
- `firefox .tox/prof/combined.svg`
"""

from pathlib import Path

from mdformat._cli import run
Expand Down

0 comments on commit 02836ba

Please sign in to comment.