-
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.
[
pydocstyle
] Add setting to ignore missing documentation for*args
…
… and `**kwargs` parameters (`D417`) (#15210) Co-authored-by: Micha Reiser <[email protected]>
- Loading branch information
1 parent
3c9021f
commit cfd6093
Showing
11 changed files
with
285 additions
and
50 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
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
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
67 changes: 67 additions & 0 deletions
67
...e/snapshots/ruff_linter__rules__pydocstyle__tests__d417_google_ignore_var_parameters.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,67 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs | ||
snapshot_kind: text | ||
--- | ||
D417.py:1:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | ||
| | ||
1 | def f(x, y, z): | ||
| ^ D417 | ||
2 | """Do something. | ||
| | ||
|
||
D417.py:14:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | ||
| | ||
14 | def f(x, y, z): | ||
| ^ D417 | ||
15 | """Do something. | ||
| | ||
|
||
D417.py:27:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | ||
| | ||
27 | def f(x, y, z): | ||
| ^ D417 | ||
28 | """Do something. | ||
| | ||
|
||
D417.py:39:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z` | ||
| | ||
39 | def f(x, y, z): | ||
| ^ D417 | ||
40 | """Do something. | ||
| | ||
|
||
D417.py:52:5: D417 Missing argument description in the docstring for `f`: `y` | ||
| | ||
52 | def f(x, y, z): | ||
| ^ D417 | ||
53 | """Do something. | ||
| | ||
|
||
D417.py:65:5: D417 Missing argument description in the docstring for `f`: `y` | ||
| | ||
65 | def f(x, y, z): | ||
| ^ D417 | ||
66 | """Do something. | ||
| | ||
|
||
D417.py:77:5: D417 Missing argument description in the docstring for `f`: `y` | ||
| | ||
77 | def f(x, y, z): | ||
| ^ D417 | ||
78 | """Do something. | ||
| | ||
|
||
D417.py:98:5: D417 Missing argument description in the docstring for `f`: `x` | ||
| | ||
98 | def f(x, *args, **kwargs): | ||
| ^ D417 | ||
99 | """Do something. | ||
| | ||
|
||
D417.py:155:5: D417 Missing argument description in the docstring for `select_data`: `auto_save` | ||
| | ||
155 | def select_data( | ||
| ^^^^^^^^^^^ D417 | ||
156 | query: str, | ||
157 | args: tuple, | ||
| |
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
Oops, something went wrong.