mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Improve rule & options documentation (#14329)
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com> Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
6
ruff.schema.json
generated
6
ruff.schema.json
generated
@@ -948,7 +948,7 @@
|
||||
]
|
||||
},
|
||||
"hardcoded-tmp-directory": {
|
||||
"description": "A list of directories to consider temporary.",
|
||||
"description": "A list of directories to consider temporary (see `S108`).",
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
@@ -958,7 +958,7 @@
|
||||
}
|
||||
},
|
||||
"hardcoded-tmp-directory-extend": {
|
||||
"description": "A list of directories to consider temporary, in addition to those specified by [`hardcoded-tmp-directory`](#lint_flake8-bandit_hardcoded-tmp-directory).",
|
||||
"description": "A list of directories to consider temporary, in addition to those specified by [`hardcoded-tmp-directory`](#lint_flake8-bandit_hardcoded-tmp-directory) (see `S108`).",
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
@@ -1700,7 +1700,7 @@
|
||||
]
|
||||
},
|
||||
"lines-after-imports": {
|
||||
"description": "The number of blank lines to place after imports. Use `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to the typing style recommendations ([source](https://typing.readthedocs.io/en/latest/source/stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because it enforces at least one empty and at most two empty lines after imports.",
|
||||
"description": "The number of blank lines to place after imports. Use `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to the typing style recommendations ([source](https://typing.readthedocs.io/en/latest/guides/writing_stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because it enforces at least one empty and at most two empty lines after imports.",
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
|
||||
Reference in New Issue
Block a user