File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ repos:
17
17
hooks :
18
18
- id : pyupgrade
19
19
- repo : https://github.com/psf/black
20
- rev : 22.12 .0
20
+ rev : 23.1 .0
21
21
hooks :
22
22
- id : black
23
23
- repo : https://github.com/pycqa/flake8
24
24
rev : 6.0.0
25
25
hooks :
26
26
- id : flake8
27
27
- repo : https://github.com/pre-commit/mirrors-mypy
28
- rev : v0.991
28
+ rev : v1.0.1
29
29
hooks :
30
30
- id : mypy
31
31
# empty args needed in order to match mypy cli behavior
37
37
- types-setuptools
38
38
- types-docutils
39
39
- repo : https://github.com/PyCQA/pylint
40
- rev : v2.16.0b1
40
+ rev : v2.16.4
41
41
hooks :
42
42
- id : pylint
43
43
additional_dependencies :
Original file line number Diff line number Diff line change @@ -259,12 +259,12 @@ def find_containing_nodes(num):
259
259
if num < first_line and nodes_lines :
260
260
return [nodes_lines [0 ][0 ]]
261
261
contained_in = []
262
- for ( n , (line_min , line_max ) ) in nodes_lines :
262
+ for n , (line_min , line_max ) in nodes_lines :
263
263
if line_min <= num <= line_max :
264
264
contained_in .append ((n , (line_min , line_max )))
265
265
smallest_span = None
266
266
best_nodes = []
267
- for ( n , (line_min , line_max ) ) in contained_in :
267
+ for n , (line_min , line_max ) in contained_in :
268
268
span = line_max - line_min
269
269
if smallest_span is None :
270
270
smallest_span = span
@@ -289,7 +289,7 @@ def any_types(nodes, types):
289
289
for i , line in enumerate (lines ):
290
290
if len (line ) > self ._max_line_length :
291
291
in_directive = False
292
- for ( start , end ) in directives :
292
+ for start , end in directives :
293
293
if start <= i <= end :
294
294
in_directive = True
295
295
break
Original file line number Diff line number Diff line change 16
16
try :
17
17
from ._version import version as __version__
18
18
except ImportError : # pragma: no branch
19
-
20
19
try :
21
20
import pkg_resources
22
21
You can’t perform that action at this time.
0 commit comments