@@ -317,7 +317,7 @@ def function_with_wrong_yield():
317317 yield # noqa: WPS325
318318 yield 1
319319
320- for literal in bad_concatenation : # noqa: WPS327, WPS328
320+ for literal in bad_concatenation : # noqa: WPS327, WPS328, WPS481
321321 continue
322322
323323with open (bad_concatenation ): # noqa: WPS328
@@ -326,7 +326,7 @@ def function_with_wrong_yield():
326326
327327my_print (biggesst > middle >= smallest ) # noqa: WPS334
328328
329- for index in [1 , 2 ]: # noqa: WPS335
329+ for index in [1 , 2 ]: # noqa: WPS335, WPS481
330330 my_print (index )
331331
332332string_concat = 'a' + 'b' # noqa: WPS336
@@ -339,11 +339,11 @@ def function_with_wrong_yield():
339339my_print (lambda : 0 ) # noqa: WPS522
340340xterm += xterm + 1 # noqa: WPS524
341341
342- for range_len in range (len (file_obj )): # noqa: WPS518
342+ for range_len in range (len (file_obj )): # noqa: WPS518, WPS481
343343 my_print (range_len )
344344
345345sum_container = 0
346- for sum_item in file_obj : # noqa: WPS519
346+ for sum_item in file_obj : # noqa: WPS519, WPS481
347347 sum_container += sum_item
348348
349349my_print (sum_container == []) # noqa: WPS520
@@ -364,7 +364,7 @@ def __init__(self) -> None:
364364 self .second = 2 # noqa: WPS601
365365
366366
367- for symbol in 'abc' : # noqa: WPS500
367+ for symbol in 'abc' : # noqa: WPS500, WPS481
368368 ...
369369else :
370370 ...
@@ -386,7 +386,7 @@ def __eq__(self, object_: object) -> bool: # noqa: WPS612
386386 return super ().__eq__ (object_ )
387387
388388
389- for loop_index in range (6 ): # noqa: WPS426
389+ for loop_index in range (6 ): # noqa: WPS426, WPS481
390390 my_print (lambda : loop_index )
391391
392392
@@ -409,7 +409,7 @@ class MyBadException(BaseException): # noqa: WPS418
409409class ClassWithWrongContents ((lambda : object )()): # noqa: WPS606
410410 __slots__ = ['a' , 'a' ] # noqa: WPS607
411411
412- for bad_body_node in range (1 ): # noqa: WPS604
412+ for bad_body_node in range (1 ): # noqa: WPS481, WPS604
413413 anti_wps604 = 1
414414
415415 def method_with_no_args (): # noqa: WPS605
@@ -424,7 +424,7 @@ def bad_default_values(
424424 return True
425425
426426
427- for nodes [0 ] in (1 , 2 , 3 ): # noqa: WPS405
427+ for nodes [0 ] in (1 , 2 , 3 ): # noqa: WPS405, WPS481
428428 ...
429429
430430with open ('some' ) as MyBadException .custom : # noqa: WPS406
@@ -631,7 +631,7 @@ def many_raises_function(parameter): # noqa: WPS238
631631def get_item (): # noqa: WPS463
632632 return # noqa: WPS324
633633
634- for _ , something in enumerate (collection ): # noqa: WPS468
634+ for _ , something in enumerate (collection ): # noqa: WPS468, WPS481
635635 report (something )
636636
637637variable_to_store_things = {
@@ -729,7 +729,7 @@ def wrong_comprehension2():
729729 ]
730730
731731
732- for unique_element in range (10 ):
732+ for unique_element in range (10 ): # noqa: WPS481
733733 if (other := unique_element ) > 5 : # noqa: WPS332
734734 my_print (1 )
735735
0 commit comments