File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
module_name = "pydocstyle"
15
15
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
+ )
17
19
supports_ignore_inline_noqa = pydocstyle_version > (5 , 1 , 1 )
18
20
supports_property_decorators = pydocstyle_version >= (6 , 2 , 0 )
19
21
supports_ignore_self_only_init = pydocstyle_version >= (6 , 3 , 0 )
@@ -105,7 +107,9 @@ def add_options(cls, parser):
105
107
if supports_property_decorators :
106
108
from pydocstyle .config import ConfigurationParser
107
109
108
- default_property_decorators = ConfigurationParser .DEFAULT_PROPERTY_DECORATORS
110
+ default_property_decorators = (
111
+ ConfigurationParser .DEFAULT_PROPERTY_DECORATORS
112
+ )
109
113
parser .add_option (
110
114
"--property-decorators" ,
111
115
action = "store" ,
@@ -152,13 +156,15 @@ def _call_check_source(self):
152
156
else None
153
157
)
154
158
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
156
162
157
163
return self .checker .check_source (
158
164
self .source ,
159
165
self .filename ,
160
166
ignore_decorators = self .ignore_decorators ,
161
- ** check_source_kwargs
167
+ ** check_source_kwargs ,
162
168
)
163
169
164
170
def _check_source (self ):
You can’t perform that action at this time.
0 commit comments