Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #407

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
Expand All @@ -23,19 +23,19 @@ repos:
hooks:
- id: absolufy-imports
- repo: https://github.com/PyCQA/isort
rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 193ee766ca496871f93621d6b58d57a6564ff81b # frozen: 23.7.0
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
hooks:
- id: black
- repo: https://github.com/myint/docformatter
- repo: https://github.com/PyCQA/docformatter
rev: dfefe062799848234b4cd60b04aa633c0608025e # frozen: v1.7.5
hooks:
- id: docformatter
- repo: https://github.com/PyCQA/flake8
rev: 10f4af6dbcf93456ba7df762278ae61ba3120dc6 # frozen: 6.1.0
rev: 1978e2b0de6efa0cb2a2b6f3f7986aa6569dd2be # frozen: 7.1.0
hooks:
- id: flake8
additional_dependencies:
Expand Down
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