Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a479316

Browse files
🔧 Update pre-commit (#341)
1 parent c10312e commit a479316

File tree

9 files changed

+24
-26
lines changed

9 files changed

+24
-26
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ exclude: >
1616
repos:
1717

1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.6.0
19+
rev: v5.0.0
2020
hooks:
2121
- id: check-json
2222
- id: check-yaml
2323
- id: end-of-file-fixer
2424
- id: trailing-whitespace
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.4.3
27+
rev: v0.8.1
2828
hooks:
2929
- id: ruff
3030
args: [--fix]
3131
- id: ruff-format
3232

3333
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.10.0
34+
rev: v1.13.0
3535
hooks:
3636
- id: mypy
3737
additional_dependencies: [mdurl]

‎markdown_it/common/utils.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ def isValidEntityCode(c: int) -> bool:
7070
if c >= 0x7F and c <= 0x9F:
7171
return False
7272
# out of range
73-
if c > 0x10FFFF:
74-
return False
75-
return True
73+
return not (c > 0x10FFFF)
7674

7775

7876
def fromCodePoint(c: int) -> str:

‎markdown_it/helpers/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Functions for parsing Links"""
22

3-
__all__ = ("parseLinkLabel", "parseLinkDestination", "parseLinkTitle")
3+
__all__ = ("parseLinkDestination", "parseLinkLabel", "parseLinkTitle")
44
from .parse_link_destination import parseLinkDestination
55
from .parse_link_label import parseLinkLabel
66
from .parse_link_title import parseLinkTitle

‎markdown_it/helpers/parse_link_destination.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class _Result:
9-
__slots__ = ("ok", "pos", "lines", "str")
9+
__slots__ = ("lines", "ok", "pos", "str")
1010

1111
def __init__(self) -> None:
1212
self.ok = False

‎markdown_it/helpers/parse_link_title.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class _Result:
7-
__slots__ = ("ok", "pos", "lines", "str")
7+
__slots__ = ("lines", "ok", "pos", "str")
88

99
def __init__(self) -> None:
1010
self.ok = False

‎markdown_it/presets/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ("commonmark", "default", "zero", "js_default", "gfm_like")
1+
__all__ = ("commonmark", "default", "gfm_like", "js_default", "zero")
22

33
from ..utils import PresetType
44
from . import commonmark, default, zero

‎markdown_it/rules_block/__init__.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
__all__ = (
22
"StateBlock",
3-
"paragraph",
4-
"heading",
5-
"lheading",
3+
"blockquote",
64
"code",
75
"fence",
6+
"heading",
87
"hr",
8+
"html_block",
9+
"lheading",
910
"list_block",
11+
"paragraph",
1012
"reference",
11-
"blockquote",
12-
"html_block",
1313
"table",
1414
)
1515

‎markdown_it/rules_core/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
__all__ = (
22
"StateCore",
3-
"normalize",
43
"block",
54
"inline",
5+
"linkify",
6+
"normalize",
67
"replace",
78
"smartquotes",
8-
"linkify",
99
"text_join",
1010
)
1111

‎markdown_it/rules_inline/__init__.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
__all__ = (
22
"StateInline",
3-
"text",
4-
"fragments_join",
5-
"link_pairs",
6-
"linkify",
7-
"escape",
8-
"newline",
3+
"autolink",
94
"backtick",
105
"emphasis",
11-
"image",
12-
"link",
13-
"autolink",
146
"entity",
7+
"escape",
8+
"fragments_join",
159
"html_inline",
10+
"image",
11+
"link",
12+
"link_pairs",
13+
"linkify",
14+
"newline",
1615
"strikethrough",
16+
"text",
1717
)
1818
from . import emphasis, strikethrough
1919
from .autolink import autolink

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /