@@ -34,8 +34,7 @@ def redundant_import(self, paramx=None, paramy=None) -> None:
34
34
--------
35
35
>>> import numpy as np
36
36
>>> import pandas as pd
37
- >>> df = pd.DataFrame(np.ones((3, 3)),
38
- ... columns=('a', 'b', 'c'))
37
+ >>> df = pd.DataFrame(np.ones((3, 3)), columns=("a", "b", "c"))
39
38
>>> df.all(axis=1)
40
39
0 True
41
40
1 True
@@ -50,14 +49,14 @@ def unused_import(self) -> None:
50
49
Examples
51
50
--------
52
51
>>> import pandas as pdf
53
- >>> df = pd.DataFrame(np.ones((3, 3)), columns=('a', 'b', 'c' ))
52
+ >>> df = pd.DataFrame(np.ones((3, 3)), columns=("a", "b", "c" ))
54
53
"""
55
54
56
55
def missing_whitespace_around_arithmetic_operator (self ) -> None :
57
56
"""
58
57
Examples
59
58
--------
60
- >>> 2+ 5
59
+ >>> 2 + 5
61
60
7
62
61
"""
63
62
@@ -66,14 +65,14 @@ def indentation_is_not_a_multiple_of_four(self) -> None:
66
65
Examples
67
66
--------
68
67
>>> if 2 + 5:
69
- ... pass
68
+ ... pass
70
69
"""
71
70
72
71
def missing_whitespace_after_comma (self ) -> None :
73
72
"""
74
73
Examples
75
74
--------
76
- >>> df = pd.DataFrame(np.ones((3,3)),columns=('a','b', 'c' ))
75
+ >>> df = pd.DataFrame(np.ones((3, 3)), columns=("a", "b", "c" ))
77
76
"""
78
77
79
78
def write_array_like_with_hyphen_not_underscore (self ) -> None :
@@ -227,13 +226,13 @@ def test_validate_all_ignore_errors(self, monkeypatch):
227
226
"errors" : [
228
227
("ER01" , "err desc" ),
229
228
("ER02" , "err desc" ),
230
- ("ER03" , "err desc" )
229
+ ("ER03" , "err desc" ),
231
230
],
232
231
"warnings" : [],
233
232
"examples_errors" : "" ,
234
233
"deprecated" : True ,
235
234
"file" : "file1" ,
236
- "file_line" : "file_line1"
235
+ "file_line" : "file_line1" ,
237
236
},
238
237
)
239
238
monkeypatch .setattr (
@@ -272,14 +271,13 @@ def test_validate_all_ignore_errors(self, monkeypatch):
272
271
None : {"ER03" },
273
272
"pandas.DataFrame.align" : {"ER01" },
274
273
# ignoring an error that is not requested should be of no effect
275
- "pandas.Index.all" : {"ER03" }
276
- }
274
+ "pandas.Index.all" : {"ER03" },
275
+ },
277
276
)
278
277
# two functions * two not global ignored errors - one function ignored error
279
278
assert exit_status == 2 * 2 - 1
280
279
281
280
282
-
283
281
class TestApiItems :
284
282
@property
285
283
def api_doc (self ):
0 commit comments