forked from astral-sh/ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
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
9b15d8c
commit fd65c70
Showing
8 changed files
with
433 additions
and
474 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
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:357:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:364:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
355 | def func1(): | ||
356 | pass | ||
357 | def func2(): | ||
362 | def func1(): | ||
363 | pass | ||
364 | def func2(): | ||
| ^^^ E301 | ||
358 | pass | ||
359 | # end | ||
365 | pass | ||
366 | # end | ||
| | ||
= help: Add missing blank line(s) | ||
|
||
ℹ Safe fix | ||
354 354 | | ||
355 355 | def func1(): | ||
356 356 | pass | ||
357 |+ | ||
357 358 | def func2(): | ||
358 359 | pass | ||
359 360 | # end | ||
361 361 | | ||
362 362 | def func1(): | ||
363 363 | pass | ||
364 |+ | ||
364 365 | def func2(): | ||
365 366 | pass | ||
366 367 | # end | ||
|
||
E30.py:368:5: E301 [*] Expected 1 blank line, found 0 | ||
E30.py:375:5: E301 [*] Expected 1 blank line, found 0 | ||
| | ||
366 | pass | ||
367 | # comment | ||
368 | def fn2(): | ||
373 | pass | ||
374 | # comment | ||
375 | def fn2(): | ||
| ^^^ E301 | ||
369 | pass | ||
370 | # end | ||
376 | pass | ||
377 | # end | ||
| | ||
= help: Add missing blank line(s) | ||
|
||
ℹ Safe fix | ||
364 364 | | ||
365 365 | def fn1(): | ||
366 366 | pass | ||
367 |+ | ||
367 368 | # comment | ||
368 369 | def fn2(): | ||
369 370 | pass | ||
371 371 | | ||
372 372 | def fn1(): | ||
373 373 | pass | ||
374 |+ | ||
374 375 | # comment | ||
375 376 | def fn2(): | ||
376 377 | pass | ||
|
||
|
Oops, something went wrong.