Automatically set baseline D codes based on convention (#1574)

This commit is contained in:
Charlie Marsh
2023-01-02 19:08:56 -05:00
committed by GitHub
parent 1425b21d93
commit 0c05488740
9 changed files with 305 additions and 275 deletions

View File

@@ -998,6 +998,13 @@
"enum": [
"numpy"
]
},
{
"description": "Use PEP257-style docstrings.",
"type": "string",
"enum": [
"pep257"
]
}
]
},
@@ -1415,7 +1422,7 @@
"type": "object",
"properties": {
"convention": {
"description": "Whether to use Google-style or Numpy-style conventions when detecting docstring sections. By default, conventions will be inferred from the available sections.",
"description": "Whether to use Google-style or NumPy-style conventions or the PEP257 defaults when analyzing docstring sections.",
"anyOf": [
{
"$ref": "#/definitions/Convention"