Relax docstring constraints
- Ignore `DOC501` in `pydoclint` to avoid requiring "Raises" sections for all functions that raise exceptions. - Ignore `D415` in `pydocstyle` to allow first-line summaries without strict punctuation enforcement. Depends-On: https://review.opendev.org/c/starlingx/test/+/942742 Change-Id: Ib01e8a0af25e1b7783179e1af26f56e87fe00aa0 Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
This commit is contained in:
parent
0d87c270d9
commit
9fb2b36228
@ -10,4 +10,5 @@ convention = google
|
||||
# D212 - Allow function/method docstring summaries to start on the second line (Google-style)
|
||||
# D213 - Allow class docstring summaries to start on the first line (Google-style)
|
||||
# D301 - Use r""" if any backslashes in a docstring
|
||||
add-ignore = D100,D107,D200,D203,D212,D213,D301
|
||||
# D415 - Do not enforce punctuation on the first line of docstrings
|
||||
add-ignore = D100,D107,D200,D203,D212,D213,D301,D415
|
||||
|
@ -11,3 +11,4 @@ include = '\.py'
|
||||
style = "google"
|
||||
check-return-types = true
|
||||
allow-init-docstring = true
|
||||
ignore = ["DOC501"] # Ignore Raises section requirement
|
||||
|
Loading…
x
Reference in New Issue
Block a user