Skip to content

Commit

Permalink
Update fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Feb 6, 2024
1 parent fdf6035 commit ba8ee05
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
@@ -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 |
Expand All @@ -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():
Expand All @@ -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():
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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
Expand All @@ -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 |
Expand All @@ -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():
Expand All @@ -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 |
Expand Down
14 changes: 14 additions & 0 deletions ruff.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba8ee05

Please sign in to comment.