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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0
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: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1
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
Loading