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

View file

@ -785,16 +785,6 @@ pub struct LintCommonOptions {
)]
pub typing_modules: Option<Vec<String>>,
/// A list of modules which is allowed even though they are not used
/// in the code.
///
/// This is useful when a module has a side effect when imported.
#[option(
default = r#"[]"#,
value_type = "list[str]",
example = r#"allowed-unused-imports = ["hvplot.pandas"]"#
)]
pub allowed_unused_imports: Option<Vec<String>>,
/// A list of rule codes or prefixes to consider non-fixable.
#[option(
default = "[]",