@@ -34,8 +34,7 @@ def redundant_import(self, paramx=None, paramy=None) -> None:
3434 --------
3535 >>> import numpy as np
3636 >>> 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"))
3938 >>> df.all(axis=1)
4039 0 True
4140 1 True
@@ -50,14 +49,14 @@ def unused_import(self) -> None:
5049 Examples
5150 --------
5251 >>> 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" ))
5453 """
5554
5655 def missing_whitespace_around_arithmetic_operator (self ) -> None :
5756 """
5857 Examples
5958 --------
60- >>> 2+ 5
59+ >>> 2 + 5
6160 7
6261 """
6362
@@ -66,14 +65,14 @@ def indentation_is_not_a_multiple_of_four(self) -> None:
6665 Examples
6766 --------
6867 >>> if 2 + 5:
69- ... pass
68+ ... pass
7069 """
7170
7271 def missing_whitespace_after_comma (self ) -> None :
7372 """
7473 Examples
7574 --------
76- >>> df = pd.DataFrame(np.ones((3,3)),columns=('a','b', 'c' ))
75+ >>> df = pd.DataFrame(np.ones((3, 3)), columns=("a", "b", "c" ))
7776 """
7877
7978 def write_array_like_with_hyphen_not_underscore (self ) -> None :
@@ -227,13 +226,13 @@ def test_validate_all_ignore_errors(self, monkeypatch):
227226 "errors" : [
228227 ("ER01" , "err desc" ),
229228 ("ER02" , "err desc" ),
230- ("ER03" , "err desc" )
229+ ("ER03" , "err desc" ),
231230 ],
232231 "warnings" : [],
233232 "examples_errors" : "" ,
234233 "deprecated" : True ,
235234 "file" : "file1" ,
236- "file_line" : "file_line1"
235+ "file_line" : "file_line1" ,
237236 },
238237 )
239238 monkeypatch .setattr (
@@ -272,14 +271,13 @@ def test_validate_all_ignore_errors(self, monkeypatch):
272271 None : {"ER03" },
273272 "pandas.DataFrame.align" : {"ER01" },
274273 # ignoring an error that is not requested should be of no effect
275- "pandas.Index.all" : {"ER03" }
276- }
274+ "pandas.Index.all" : {"ER03" },
275+ },
277276 )
278277 # two functions * two not global ignored errors - one function ignored error
279278 assert exit_status == 2 * 2 - 1
280279
281280
282-
283281class TestApiItems :
284282 @property
285283 def api_doc (self ):
0 commit comments