@@ -278,7 +278,7 @@ def missing_colon_google_style_section(): # noqa: D406, D407
278
278
@expect ("D417: Missing argument descriptions in the docstring "
279
279
"(argument(s) y are missing descriptions in "
280
280
"'test_missing_google_args' docstring)" )
281
- def test_missing_google_args (x = 1 , y = 2 ): # noqa: D406, D407
281
+ def test_missing_google_args (x = 1 , y = 2 , _private = 3 ): # noqa: D406, D407
282
282
"""Toggle the gizmo.
283
283
284
284
Args:
@@ -290,7 +290,7 @@ def test_missing_google_args(x=1, y=2): # noqa: D406, D407
290
290
class TestGoogle : # noqa: D203
291
291
"""Test class."""
292
292
293
- def test_method (self , test , another_test ): # noqa: D213, D407
293
+ def test_method (self , test , another_test , _ ): # noqa: D213, D407
294
294
"""Test a valid args section.
295
295
296
296
Args:
@@ -301,8 +301,8 @@ def test_method(self, test, another_test): # noqa: D213, D407
301
301
302
302
@expect ("D417: Missing argument descriptions in the docstring "
303
303
"(argument(s) test, y, z are missing descriptions in "
304
- "'test_missing_args' docstring)" , arg_count = 4 )
305
- def test_missing_args (self , test , x , y , z = 3 ): # noqa: D213, D407
304
+ "'test_missing_args' docstring)" , arg_count = 5 )
305
+ def test_missing_args (self , test , x , y , z = 3 , _private_arg = 3 ): # noqa: D213, D407
306
306
"""Test a valid args section.
307
307
308
308
Args:
@@ -313,8 +313,8 @@ def test_missing_args(self, test, x, y, z=3): # noqa: D213, D407
313
313
@classmethod
314
314
@expect ("D417: Missing argument descriptions in the docstring "
315
315
"(argument(s) test, y, z are missing descriptions in "
316
- "'test_missing_args_class_method' docstring)" , arg_count = 4 )
317
- def test_missing_args_class_method (cls , test , x , y , z = 3 ): # noqa: D213, D407
316
+ "'test_missing_args_class_method' docstring)" , arg_count = 5 )
317
+ def test_missing_args_class_method (cls , test , x , y , _ , z = 3 ): # noqa: D213, D407
318
318
"""Test a valid args section.
319
319
320
320
Args:
@@ -326,8 +326,8 @@ def test_missing_args_class_method(cls, test, x, y, z=3): # noqa: D213, D407
326
326
@staticmethod
327
327
@expect ("D417: Missing argument descriptions in the docstring "
328
328
"(argument(s) a, y, z are missing descriptions in "
329
- "'test_missing_args_static_method' docstring)" , arg_count = 3 )
330
- def test_missing_args_static_method (a , x , y , z = 3 ): # noqa: D213, D407
329
+ "'test_missing_args_static_method' docstring)" , arg_count = 4 )
330
+ def test_missing_args_static_method (a , x , y , _test , z = 3 ): # noqa: D213, D407
331
331
"""Test a valid args section.
332
332
333
333
Args:
@@ -340,7 +340,7 @@ def test_missing_args_static_method(a, x, y, z=3): # noqa: D213, D407
340
340
@expect ("D417: Missing argument descriptions in the docstring "
341
341
"(argument(s) y are missing descriptions in "
342
342
"'test_missing_numpy_args' docstring)" )
343
- def test_missing_numpy_args (x = 1 , y = 2 ): # noqa: D406, D407
343
+ def test_missing_numpy_args (_private_arg = 0 , x = 1 , y = 2 ): # noqa: D406, D407
344
344
"""Toggle the gizmo.
345
345
346
346
Parameters
@@ -354,7 +354,7 @@ def test_missing_numpy_args(x=1, y=2): # noqa: D406, D407
354
354
class TestNumpy : # noqa: D203
355
355
"""Test class."""
356
356
357
- def test_method (self , test , another_test , x = 1 , y = 2 ): # noqa: D213, D407
357
+ def test_method (self , test , another_test , _ , x = 1 , y = 2 , _private_arg = 1 ): # noqa: D213, D407
358
358
"""Test a valid args section.
359
359
360
360
Parameters
@@ -368,8 +368,8 @@ def test_method(self, test, another_test, x=1, y=2): # noqa: D213, D407
368
368
369
369
@expect ("D417: Missing argument descriptions in the docstring "
370
370
"(argument(s) test, y, z are missing descriptions in "
371
- "'test_missing_args' docstring)" , arg_count = 4 )
372
- def test_missing_args (self , test , x , y , z = 3 , t = 1 ): # noqa: D213, D407
371
+ "'test_missing_args' docstring)" , arg_count = 5 )
372
+ def test_missing_args (self , test , x , y , z = 3 , t = 1 , _private = 0 ): # noqa: D213, D407
373
373
"""Test a valid args section.
374
374
375
375
Parameters
0 commit comments