Skip to content

Commit ee34305

Browse files
committed
🔧 MAINTAIN: pin pre-commit black
1 parent 48bbd90 commit ee34305

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ repos:
2929
- id: check-manifest
3030

3131
- repo: https://github.com/psf/black
32-
rev: stable
32+
rev: 20.8b1
3333
hooks:
3434
- id: black

docs/conf.py

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

7373

7474
def run_apidoc(app):
75-
""" generate apidoc
75+
"""generate apidoc
7676
7777
See: https://github.com/rtfd/readthedocs.org/issues/1139
7878
"""

markdown_it/common/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def assign(obj):
5858

5959
def arrayReplaceAt(src: list, pos: int, newElements: list):
6060
"""
61-
Remove element from array and put another array at those position.
62-
Useful for some operations with tokens
63-
"""
61+
Remove element from array and put another array at those position.
62+
Useful for some operations with tokens
63+
"""
6464
return src[0:pos] + newElements + src[pos + 1 :]
6565

6666

markdown_it/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ def set(self, options):
6666
self.options = options
6767

6868
def configure(self, presets: Union[str, AttrDict]):
69-
""""
70-
Batch load of all options and component settings. This is an internal method,
71-
and you probably will not need it.
69+
"""Batch load of all options and component settings.
70+
This is an internal method, and you probably will not need it.
7271
But if you will - see available presets and data structure
7372
[here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)
7473

markdown_it/parser_inline.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def skipToken(self, state: StateInline):
8383
cache[pos] = state.pos
8484

8585
def tokenize(self, state: StateInline):
86-
"""Generate tokens for input range.
87-
"""
86+
"""Generate tokens for input range."""
8887
ok = False
8988
rules = self.ruler.getRules("")
9089
end = state.posMax
@@ -116,8 +115,7 @@ def tokenize(self, state: StateInline):
116115
state.pushPending()
117116

118117
def parse(self, src: str, md, env, tokens: List[Token]):
119-
"""Process input string and push inline tokens into `tokens`
120-
"""
118+
"""Process input string and push inline tokens into `tokens`"""
121119
state = StateInline(src, md, env, tokens)
122120
self.tokenize(state)
123121
rules2 = self.ruler2.getRules("")

0 commit comments

Comments
 (0)