@@ -206,7 +206,9 @@ def test_plugin_alphabetical(source: str, expects: Set[str], dunder_all_alphabet
206206 ]
207207 )
208208def test_plugin_alphabetical_ann_assign (
209- source : str , expects : Set [str ], dunder_all_alphabetical : AlphabeticalOptions
209+ source : str ,
210+ expects : Set [str ],
211+ dunder_all_alphabetical : AlphabeticalOptions ,
210212 ):
211213 plugin = Plugin (ast .parse (source ))
212214 plugin .dunder_all_alphabetical = dunder_all_alphabetical
@@ -248,16 +250,25 @@ def test_plugin_alphabetical_tuple():
248250 pytest .param (testing_source_b , ["a_function" ], False , 3 , id = "function no __all__" ),
249251 pytest .param (testing_source_c , ["Foo" ], False , 3 , id = "class no __all__" ),
250252 pytest .param (
251- testing_source_d , ["Foo" , "a_function" ], False , 3 , id = "function and class no __all__"
253+ testing_source_d ,
254+ ["Foo" , "a_function" ],
255+ False ,
256+ 3 ,
257+ id = "function and class no __all__" ,
252258 ),
253259 pytest .param (
254- testing_source_e , ["Foo" , "a_function" ], True , 3 , id = "function and class with __all__"
260+ testing_source_e ,
261+ ["Foo" , "a_function" ],
262+ True ,
263+ 3 ,
264+ id = "function and class with __all__" ,
255265 ),
256266 pytest .param (
257- testing_source_f , ["Foo" , "a_function" ],
267+ testing_source_f ,
268+ ["Foo" , "a_function" ],
258269 True ,
259270 3 ,
260- id = "function and class with __all__ and extra variable"
271+ id = "function and class with __all__ and extra variable" ,
261272 ),
262273 pytest .param (testing_source_g , ["a_function" ], False , 3 , id = "async function no __all__" ),
263274 pytest .param (testing_source_h , [], False , 1 , id = "from import" ),
@@ -285,16 +296,25 @@ def test_visitor(source: str, members: List[str], found_all: bool, last_import:
285296 pytest .param (testing_source_b , ["a_function" ], False , 3 , id = "function no __all__" ),
286297 pytest .param (testing_source_c , ["Foo" ], False , 3 , id = "class no __all__" ),
287298 pytest .param (
288- testing_source_d , ["Foo" , "a_function" ], False , 3 , id = "function and class no __all__"
299+ testing_source_d ,
300+ ["Foo" , "a_function" ],
301+ False ,
302+ 3 ,
303+ id = "function and class no __all__" ,
289304 ),
290305 pytest .param (
291- testing_source_e , ["Foo" , "a_function" ], True , 3 , id = "function and class with __all__"
306+ testing_source_e ,
307+ ["Foo" , "a_function" ],
308+ True ,
309+ 3 ,
310+ id = "function and class with __all__" ,
292311 ),
293312 pytest .param (
294- testing_source_f , ["Foo" , "a_function" ],
313+ testing_source_f ,
314+ ["Foo" , "a_function" ],
295315 True ,
296316 3 ,
297- id = "function and class with __all__ and extra variable"
317+ id = "function and class with __all__ and extra variable" ,
298318 ),
299319 pytest .param (testing_source_g , ["a_function" ], False , 3 , id = "async function no __all__" ),
300320 pytest .param (testing_source_h , [], False , 1 , id = "from import" ),
@@ -306,10 +326,11 @@ def test_visitor(source: str, members: List[str], found_all: bool, last_import:
306326 pytest .param (if_type_checking_try_source , ["a_function" ], False , 8 , id = "if TYPE_CHECKING try" ),
307327 pytest .param (not_type_checking_if_source , ["a_function" ], False , 2 , id = "not TYPE_CHECKING if" ),
308328 pytest .param (
309- if_type_checking_try_finally_source , ["a_function" ],
329+ if_type_checking_try_finally_source ,
330+ ["a_function" ],
310331 False ,
311332 10 ,
312- id = "if TYPE_CHECKING try finally"
333+ id = "if TYPE_CHECKING try finally" ,
313334 ),
314335 ]
315336 )
@@ -335,9 +356,10 @@ def test_visitor_endlineno(source: str, members: List[str], found_all: bool, las
335356 pytest .param (testing_source_d , ["Foo" , "a_function" ], 1 , id = "function and class no __all__" ),
336357 pytest .param (testing_source_e , ["Foo" , "a_function" ], 0 , id = "function and class with __all__" ),
337358 pytest .param (
338- testing_source_f , ["Foo" , "a_function" ],
359+ testing_source_f ,
360+ ["Foo" , "a_function" ],
339361 0 ,
340- id = "function and class with __all__ and extra variable"
362+ id = "function and class with __all__ and extra variable" ,
341363 ),
342364 pytest .param (testing_source_g , ["a_function" ], 1 , id = "async function no __all__" ),
343365 pytest .param (testing_source_h , [], 0 , id = "from import" ),
@@ -357,7 +379,7 @@ def test_check_and_add_all(
357379 source : str ,
358380 members : List [str ],
359381 ret : int ,
360- advanced_file_regression : AdvancedFileRegressionFixture
382+ advanced_file_regression : AdvancedFileRegressionFixture ,
361383 ):
362384 tmpfile = tmp_pathplus / "source.py"
363385 tmpfile .write_text (source )
@@ -386,9 +408,10 @@ def test_check_and_add_all(
386408 id = "function and class with __all__" ,
387409 ),
388410 pytest .param (
389- testing_source_f_tuple , ["Foo" , "a_function" ],
411+ testing_source_f_tuple ,
412+ ["Foo" , "a_function" ],
390413 0 ,
391- id = "function and class with __all__ and extra variable"
414+ id = "function and class with __all__ and extra variable" ,
392415 ),
393416 pytest .param (testing_source_g , ["a_function" ], 1 , id = "async function no __all__" ),
394417 pytest .param (testing_source_h , [], 0 , id = "from import" ),
@@ -404,7 +427,7 @@ def test_check_and_add_all_tuples(
404427 source : str ,
405428 members : List [str ],
406429 ret : int ,
407- advanced_file_regression : AdvancedFileRegressionFixture
430+ advanced_file_regression : AdvancedFileRegressionFixture ,
408431 ):
409432 tmpfile = tmp_pathplus / "source.py"
410433 tmpfile .write_text (source )
0 commit comments