Skip to content

Commit 9740e23

Browse files
committed
🔧 pre-commit autoupdate
1 parent 4e89474 commit 9740e23

28 files changed

+6
-39
lines changed

.pre-commit-config.yaml

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

1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.3.0
19+
rev: v4.4.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/pycqa/isort
27-
rev: 5.10.1
27+
rev: 5.12.0
2828
hooks:
2929
- id: isort
3030

3131
- repo: https://github.com/psf/black
32-
rev: 22.6.0
32+
rev: 23.1.0
3333
hooks:
3434
- id: black
3535

3636
- repo: https://github.com/PyCQA/flake8
37-
rev: 5.0.2
37+
rev: 6.0.0
3838
hooks:
3939
- id: flake8
4040
additional_dependencies: [flake8-bugbear~=22.7]
4141

4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: v0.971
43+
rev: v1.0.1
4444
hooks:
4545
- id: mypy
4646
additional_dependencies: [mdurl]

markdown_it/common/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def arrayReplaceAt(src: list, pos: int, newElements: list) -> list:
5656

5757

5858
def isValidEntityCode(c: int) -> bool:
59-
6059
# broken sequence
6160
if c >= 0xD800 and c <= 0xDFFF:
6261
return False

markdown_it/helpers/parse_link_label.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
def parseLinkLabel(state: StateInline, start: int, disableNested: bool = False) -> int:
12-
1312
labelEnd = -1
1413
oldPos = state.pos
1514
found = False

markdown_it/renderer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Renderer
1818
try:
1919
from typing import Protocol
2020
except ImportError: # Python <3.8 doesn't have `Protocol` in the stdlib
21-
from typing_extensions import Protocol # type: ignore[misc]
21+
from typing_extensions import Protocol # type: ignore
2222

2323

2424
class RendererProtocol(Protocol):
@@ -82,7 +82,6 @@ def render(
8282
result = ""
8383

8484
for i, token in enumerate(tokens):
85-
8685
if token.type == "inline":
8786
assert token.children is not None
8887
result += self.renderInline(token.children, options, env)

markdown_it/rules_block/blockquote.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
def blockquote(state: StateBlock, startLine: int, endLine: int, silent: bool):
13-
1413
LOGGER.debug(
1514
"entering blockquote: %s, %s, %s, %s", state, startLine, endLine, silent
1615
)
@@ -129,7 +128,6 @@ def blockquote(state: StateBlock, startLine: int, endLine: int, silent: bool):
129128
# for (nextLine = startLine + 1; nextLine < endLine; nextLine++) {
130129
nextLine = startLine + 1
131130
while nextLine < endLine:
132-
133131
# check if it's outdented, i.e. it's inside list item and indented
134132
# less than said list item:
135133
#

markdown_it/rules_block/code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def code(state: StateBlock, startLine: int, endLine: int, silent: bool = False):
10-
1110
LOGGER.debug("entering code: %s, %s, %s, %s", state, startLine, endLine, silent)
1211

1312
if state.sCount[startLine] - state.blkIndent < 4:

markdown_it/rules_block/fence.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def fence(state: StateBlock, startLine: int, endLine: int, silent: bool):
10-
1110
LOGGER.debug("entering fence: %s, %s, %s, %s", state, startLine, endLine, silent)
1211

1312
haveEndMarker = False

markdown_it/rules_block/heading.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
def heading(state: StateBlock, startLine: int, endLine: int, silent: bool):
13-
1413
LOGGER.debug("entering heading: %s, %s, %s, %s", state, startLine, endLine, silent)
1514

1615
pos = state.bMarks[startLine] + state.tShift[startLine]

markdown_it/rules_block/hr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
def hr(state: StateBlock, startLine: int, endLine: int, silent: bool):
14-
1514
LOGGER.debug("entering hr: %s, %s, %s, %s", state, startLine, endLine, silent)
1615

1716
pos = state.bMarks[startLine] + state.tShift[startLine]

markdown_it/rules_block/lheading.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
def lheading(state: StateBlock, startLine: int, endLine: int, silent: bool):
11-
1211
LOGGER.debug("entering lheading: %s, %s, %s, %s", state, startLine, endLine, silent)
1312

1413
level = None

0 commit comments

Comments
 (0)