-
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.
- Loading branch information
1 parent
db137d9
commit 85302d5
Showing
7 changed files
with
576 additions
and
534 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:433:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:444:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
431 | def func1(): | ||
432 | pass | ||
433 | def func2(): | ||
442 | def func1(): | ||
443 | pass | ||
444 | def func2(): | ||
| ^^^ E301 | ||
434 | pass | ||
435 | # end | ||
445 | pass | ||
446 | # end | ||
| | ||
= help: Add missing blank line(s) | ||
|
||
ℹ Safe fix | ||
430 430 | | ||
431 431 | def func1(): | ||
432 432 | pass | ||
433 |+ | ||
433 434 | def func2(): | ||
434 435 | pass | ||
435 436 | # end | ||
441 441 | | ||
442 442 | def func1(): | ||
443 443 | pass | ||
444 |+ | ||
444 445 | def func2(): | ||
445 446 | pass | ||
446 447 | # end | ||
|
||
E30.py:444:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:455:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
442 | pass | ||
443 | # comment | ||
444 | def fn2(): | ||
453 | pass | ||
454 | # comment | ||
455 | def fn2(): | ||
| ^^^ E301 | ||
445 | pass | ||
446 | # end | ||
456 | pass | ||
457 | # end | ||
| | ||
= help: Add missing blank line(s) | ||
|
||
ℹ Safe fix | ||
440 440 | | ||
441 441 | def fn1(): | ||
442 442 | pass | ||
443 |+ | ||
443 444 | # comment | ||
444 445 | def fn2(): | ||
445 446 | pass | ||
451 451 | | ||
452 452 | def fn1(): | ||
453 453 | pass | ||
454 |+ | ||
454 455 | # comment | ||
455 456 | def fn2(): | ||
456 457 | pass | ||
|
||
|
Oops, something went wrong.