Skip to content

Commit 90edee9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2db7fd1 commit 90edee9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

flake8_docstrings.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
module_name = "pydocstyle"
1515

16-
pydocstyle_version = tuple(int(num) for num in pep257.__version__.split("."))
16+
pydocstyle_version = tuple(
17+
int(num) for num in pep257.__version__.split(".")
18+
)
1719
supports_ignore_inline_noqa = pydocstyle_version > (5, 1, 1)
1820
supports_property_decorators = pydocstyle_version >= (6, 2, 0)
1921
supports_ignore_self_only_init = pydocstyle_version >= (6, 3, 0)
@@ -105,7 +107,9 @@ def add_options(cls, parser):
105107
if supports_property_decorators:
106108
from pydocstyle.config import ConfigurationParser
107109

108-
default_property_decorators = ConfigurationParser.DEFAULT_PROPERTY_DECORATORS
110+
default_property_decorators = (
111+
ConfigurationParser.DEFAULT_PROPERTY_DECORATORS
112+
)
109113
parser.add_option(
110114
"--property-decorators",
111115
action="store",
@@ -152,13 +156,15 @@ def _call_check_source(self):
152156
else None
153157
)
154158
if supports_ignore_self_only_init:
155-
check_source_kwargs["ignore_self_only_init"] = self.ignore_self_only_init
159+
check_source_kwargs[
160+
"ignore_self_only_init"
161+
] = self.ignore_self_only_init
156162

157163
return self.checker.check_source(
158164
self.source,
159165
self.filename,
160166
ignore_decorators=self.ignore_decorators,
161-
**check_source_kwargs
167+
**check_source_kwargs,
162168
)
163169

164170
def _check_source(self):

0 commit comments

Comments
 (0)