Skip to content

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

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

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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ exclude: >
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.8.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: [mdurl]
Expand Down
2 changes: 1 addition & 1 deletion markdown_it/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Functions for parsing Links"""

__all__ = ("parseLinkLabel", "parseLinkDestination", "parseLinkTitle")
__all__ = ("parseLinkDestination", "parseLinkLabel", "parseLinkTitle")
from .parse_link_destination import parseLinkDestination
from .parse_link_label import parseLinkLabel
from .parse_link_title import parseLinkTitle
2 changes: 1 addition & 1 deletion markdown_it/helpers/parse_link_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class _Result:
__slots__ = ("ok", "pos", "lines", "str")
__slots__ = ("lines", "ok", "pos", "str")

def __init__(self) -> None:
self.ok = False
Expand Down
2 changes: 1 addition & 1 deletion markdown_it/helpers/parse_link_title.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class _Result:
__slots__ = ("ok", "pos", "lines", "str")
__slots__ = ("lines", "ok", "pos", "str")

def __init__(self) -> None:
self.ok = False
Expand Down
2 changes: 1 addition & 1 deletion markdown_it/presets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__all__ = ("commonmark", "default", "zero", "js_default", "gfm_like")
__all__ = ("commonmark", "default", "gfm_like", "js_default", "zero")

from ..utils import PresetType
from . import commonmark, default, zero
Expand Down
10 changes: 5 additions & 5 deletions markdown_it/rules_block/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
__all__ = (
"StateBlock",
"paragraph",
"heading",
"lheading",
"blockquote",
"code",
"fence",
"heading",
"hr",
"html_block",
"lheading",
"list_block",
"paragraph",
"reference",
"blockquote",
"html_block",
"table",
)

Expand Down
4 changes: 2 additions & 2 deletions markdown_it/rules_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
__all__ = (
"StateCore",
"normalize",
"block",
"inline",
"linkify",
"normalize",
"replace",
"smartquotes",
"linkify",
"text_join",
)

Expand Down
18 changes: 9 additions & 9 deletions markdown_it/rules_inline/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
__all__ = (
"StateInline",
"text",
"fragments_join",
"link_pairs",
"linkify",
"escape",
"newline",
"autolink",
"backtick",
"emphasis",
"image",
"link",
"autolink",
"entity",
"escape",
"fragments_join",
"html_inline",
"image",
"link",
"link_pairs",
"linkify",
"newline",
"strikethrough",
"text",
)
from . import emphasis, strikethrough
from .autolink import autolink
Expand Down
Loading