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:
Micha Reiser
2024-10-08 16:48:31 +02:00
committed by Alex Waygood
parent 1b79ae9817
commit 9218d6bedc
3 changed files with 2 additions and 40 deletions

21
ruff.schema.json generated
View File

@@ -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": [