-
-
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.
#5452: Fix false positive missing-doc-param from multi-line Google-st… (
#5459) * #5452: Fix false positive missing-doc-param from multi-line Google-style docstrings. Co-authored-by: Daniël van Noord <[email protected]>
- Loading branch information
1 parent
35813de
commit 4b70feb
Showing
5 changed files
with
36 additions
and
10 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
18 changes: 18 additions & 0 deletions
18
tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.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,18 @@ | ||
"""Tests for missing-param-doc and missing-type-doc for Google style docstrings | ||
with accept-no-param-doc = no | ||
Styleguide: | ||
https://google.github.io/styleguide/pyguide.html#doc-function-args | ||
""" | ||
# pylint: disable=invalid-name | ||
|
||
|
||
def test_multi_line_parameters(param: int) -> None: | ||
"""Checks that multi line parameters lists are checked correctly | ||
See https://github.com/PyCQA/pylint/issues/5452 | ||
Args: | ||
param: | ||
a description | ||
""" | ||
print(param) |
6 changes: 6 additions & 0 deletions
6
tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.rc
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,6 @@ | ||
[MASTER] | ||
load-plugins = pylint.extensions.docparams | ||
|
||
[BASIC] | ||
accept-no-param-doc=no | ||
docstring-min-length: -1 |