mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00: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:
parent
1b79ae9817
commit
9218d6bedc
3 changed files with 2 additions and 40 deletions
|
@ -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 = "[]",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue