mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Automatically set baseline D codes based on convention (#1574)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user