-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a blank lines with trailing white spaces fixtures.
- Loading branch information
1 parent
a375a69
commit 47e801b
Showing
7 changed files
with
593 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
.../src/rules/pycodestyle/snapshots/ruff_linter__rules__pycodestyle__tests__E301_E30.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs | ||
--- | ||
E30.py:444:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:453:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
442 | def func1(): | ||
443 | pass | ||
444 | def func2(): | ||
451 | def func1(): | ||
452 | pass | ||
453 | def func2(): | ||
| ^^^ E301 | ||
445 | pass | ||
446 | # end | ||
454 | pass | ||
455 | # end | ||
| | ||
= help: Add missing blank line | ||
|
||
ℹ Safe fix | ||
441 441 | | ||
442 442 | def func1(): | ||
443 443 | pass | ||
444 |+ | ||
444 445 | def func2(): | ||
445 446 | pass | ||
446 447 | # end | ||
450 450 | | ||
451 451 | def func1(): | ||
452 452 | pass | ||
453 |+ | ||
453 454 | def func2(): | ||
454 455 | pass | ||
455 456 | # end | ||
|
||
E30.py:455:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:464:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
453 | pass | ||
454 | # comment | ||
455 | def fn2(): | ||
462 | pass | ||
463 | # comment | ||
464 | def fn2(): | ||
| ^^^ E301 | ||
456 | pass | ||
457 | # end | ||
465 | pass | ||
466 | # end | ||
| | ||
= help: Add missing blank line | ||
|
||
ℹ Safe fix | ||
451 451 | | ||
452 452 | def fn1(): | ||
453 453 | pass | ||
454 |+ | ||
454 455 | # comment | ||
455 456 | def fn2(): | ||
456 457 | pass | ||
460 460 | | ||
461 461 | def fn1(): | ||
462 462 | pass | ||
463 |+ | ||
463 464 | # comment | ||
464 465 | def fn2(): | ||
465 466 | pass | ||
|
||
|
Oops, something went wrong.