-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
d543e72
commit bce6989
Showing
4 changed files
with
69 additions
and
26 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
26 changes: 13 additions & 13 deletions
26
...odestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E304_notebook.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,22 +1,22 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs | ||
--- | ||
E30.ipynb:37:1: E304 [*] Blank lines found after function decorator (1) | ||
E30.ipynb:45:1: E304 [*] Blank lines found after function decorator (1) | ||
| | ||
35 | @decorator | ||
36 | | ||
37 | def function(): | ||
43 | @decorator | ||
44 | | ||
45 | def function(): | ||
| ^^^ E304 | ||
38 | pass | ||
39 | # end | ||
46 | pass | ||
47 | # end | ||
| | ||
= help: Remove extraneous blank line(s) | ||
|
||
ℹ Safe fix | ||
33 33 | # end | ||
34 34 | # E304 | ||
35 35 | @decorator | ||
36 |- | ||
37 36 | def function(): | ||
38 37 | pass | ||
39 38 | # end | ||
41 41 | # end | ||
42 42 | # E304 | ||
43 43 | @decorator | ||
44 |- | ||
45 44 | def function(): | ||
46 45 | pass | ||
47 46 | # end |
26 changes: 13 additions & 13 deletions
26
...odestyle/snapshots/ruff_linter__rules__pycodestyle__tests__blank_lines_E306_notebook.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,22 +1,22 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs | ||
--- | ||
E30.ipynb:52:5: E306 [*] Expected 1 blank line before a nested definition, found 0 | ||
E30.ipynb:60:5: E306 [*] Expected 1 blank line before a nested definition, found 0 | ||
| | ||
50 | def a(): | ||
51 | x = 1 | ||
52 | def b(): | ||
58 | def a(): | ||
59 | x = 1 | ||
60 | def b(): | ||
| ^^^ E306 | ||
53 | pass | ||
54 | # end | ||
61 | pass | ||
62 | # end | ||
| | ||
= help: Add missing blank line | ||
|
||
ℹ Safe fix | ||
49 49 | # E306:3:5 | ||
50 50 | def a(): | ||
51 51 | x = 1 | ||
52 |+ | ||
52 53 | def b(): | ||
53 54 | pass | ||
54 55 | # end | ||
57 57 | # E306:3:5 | ||
58 58 | def a(): | ||
59 59 | x = 1 | ||
60 |+ | ||
60 61 | def b(): | ||
61 62 | pass | ||
62 63 | # end |