diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap index 5e3e0713fc108a..483170ced3def9 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap @@ -10,7 +10,7 @@ E30.py:444:5: E301 [*] Expected 1 blank line, found 0 445 | pass 446 | # end | - = help: Add missing blank line(s) + = help: Add missing blank line ℹ Safe fix 441 441 | @@ -30,7 +30,7 @@ E30.py:455:5: E301 [*] Expected 1 blank line, found 0 456 | pass 457 | # end | - = help: Add missing blank line(s) + = help: Add missing blank line ℹ Safe fix 451 451 | diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap index 2c320bae8996f4..75b28a80529d5c 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E304_E30.py.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs --- -E30.py:654:1: E304 [*] blank lines found after function decorator +E30.py:654:1: E304 [*] Blank lines found after function decorator | 652 | @decorator 653 | @@ -21,7 +21,7 @@ E30.py:654:1: E304 [*] blank lines found after function decorator 655 654 | pass 656 655 | # end -E30.py:663:1: E304 [*] blank lines found after function decorator +E30.py:663:1: E304 [*] Blank lines found after function decorator | 662 | # comment E304 not expected 663 | def function(): @@ -40,7 +40,7 @@ E30.py:663:1: E304 [*] blank lines found after function decorator 663 662 | def function(): 664 663 | pass -E30.py:675:1: E304 [*] blank lines found after function decorator +E30.py:675:1: E304 [*] Blank lines found after function decorator | 674 | # second comment E304 not expected 675 | def function(): diff --git a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap index 987bcb885f97b4..4addcca1859646 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap +++ b/crates/ruff_linter/src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E305_E30.py.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/pycodestyle/mod.rs --- -E30.py:687:1: E305 [*] expected 2 blank lines after class or function definition, found (1) +E30.py:687:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | 686 | # another comment 687 | fn() @@ -20,7 +20,7 @@ E30.py:687:1: E305 [*] expected 2 blank lines after class or function definition 688 690 | # end 689 691 | -E30.py:698:1: E305 [*] expected 2 blank lines after class or function definition, found (1) +E30.py:698:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | 697 | # another comment 698 | a = 1 @@ -39,7 +39,7 @@ E30.py:698:1: E305 [*] expected 2 blank lines after class or function definition 699 701 | # end 700 702 | -E30.py:710:1: E305 [*] expected 2 blank lines after class or function definition, found (1) +E30.py:710:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | 708 | # another comment 709 | @@ -59,7 +59,7 @@ E30.py:710:1: E305 [*] expected 2 blank lines after class or function definition 711 712 | fn() 712 713 | except Exception: -E30.py:722:1: E305 [*] expected 2 blank lines after class or function definition, found (1) +E30.py:722:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | 721 | # Two spaces before comments, too. 722 | if a(): @@ -79,7 +79,7 @@ E30.py:722:1: E305 [*] expected 2 blank lines after class or function definition 723 725 | a() 724 726 | # end -E30.py:735:1: E305 [*] expected 2 blank lines after class or function definition, found (1) +E30.py:735:1: E305 [*] Expected 2 blank lines after class or function definition, found (1) | 733 | blah, blah 734 | diff --git a/ruff.schema.json b/ruff.schema.json index ec2abdb613faf0..99d5159152ebe8 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -3534,6 +3534,20 @@ "RUF2", "RUF20", "RUF200", + "RUF9", + "RUF90", + "RUF900", + "RUF901", + "RUF902", + "RUF903", + "RUF91", + "RUF911", + "RUF912", + "RUF92", + "RUF920", + "RUF921", + "RUF95", + "RUF950", "S", "S1", "S10",