-
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.
[
pydocstyle
] Avoid non-character breaks in over-indentation
(`D20…
- Loading branch information
1 parent
60eb11f
commit ed14fd9
Showing
4 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
crates/ruff_linter/resources/test/fixtures/pydocstyle/D208.py
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Platform: | ||
""" Remove sampler | ||
Args: | ||
Returns: | ||
""" |
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
57 changes: 57 additions & 0 deletions
57
...r/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D208_D208.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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs | ||
--- | ||
D208.py:3:1: D208 [*] Docstring is over-indented | ||
| | ||
1 | class Platform: | ||
2 | """ Remove sampler | ||
3 | Args: | ||
| D208 | ||
4 | Returns: | ||
5 | """ | ||
| | ||
= help: Remove over-indentation | ||
|
||
ℹ Safe fix | ||
1 1 | class Platform: | ||
2 2 | """ Remove sampler | ||
3 |- Args: | ||
3 |+ Args: | ||
4 4 | Returns: | ||
5 5 | """ | ||
|
||
D208.py:4:1: D208 [*] Docstring is over-indented | ||
| | ||
2 | """ Remove sampler | ||
3 | Args: | ||
4 | Returns: | ||
| D208 | ||
5 | """ | ||
| | ||
= help: Remove over-indentation | ||
|
||
ℹ Safe fix | ||
1 1 | class Platform: | ||
2 2 | """ Remove sampler | ||
3 3 | Args: | ||
4 |- Returns: | ||
4 |+ Returns: | ||
5 5 | """ | ||
|
||
D208.py:5:1: D208 [*] Docstring is over-indented | ||
| | ||
3 | Args: | ||
4 | Returns: | ||
5 | """ | ||
| D208 | ||
| | ||
= help: Remove over-indentation | ||
|
||
ℹ Safe fix | ||
2 2 | """ Remove sampler | ||
3 3 | Args: | ||
4 4 | Returns: | ||
5 |- """ | ||
5 |+ """ | ||
|
||
|