mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Remove allow-unused-imports setting from the common lint options (#13677)
Fixes https://github.com/astral-sh/ruff/issues/13668
This commit is contained in:
committed by
Alex Waygood
parent
1b79ae9817
commit
9218d6bedc
21
ruff.schema.json
generated
21
ruff.schema.json
generated
@@ -16,17 +16,6 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"allowed-unused-imports": {
|
||||
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
||||
"deprecated": true,
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"analyze": {
|
||||
"description": "Options to configure import map generation.",
|
||||
"anyOf": [
|
||||
@@ -1886,16 +1875,6 @@
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"allowed-unused-imports": {
|
||||
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"dummy-variable-rgx": {
|
||||
"description": "A regular expression used to identify \"dummy\" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.",
|
||||
"type": [
|
||||
|
||||
Reference in New Issue
Block a user