diff --git a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap index f141588829c770..3792cb39ddeaa1 100644 --- a/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap +++ b/crates/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/pyflakes/mod.rs --- -__init__.py:1:8: F401 [*] `os` imported but unused; consider removing, adding to `__all__`, or using a redundant alias +__init__.py:1:8: F401 `os` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | 1 | import os | ^^ F401 @@ -9,9 +9,3 @@ __init__.py:1:8: F401 [*] `os` imported but unused; consider removing, adding to 3 | print(__path__) | = help: Remove unused import: `os` - -ℹ Unsafe fix -1 |-import os -2 1 | -3 2 | print(__path__) -4 3 | diff --git a/crates/ruff_linter/src/settings/mod.rs b/crates/ruff_linter/src/settings/mod.rs index 53f41534195ea2..e6c9b50d90cff8 100644 --- a/crates/ruff_linter/src/settings/mod.rs +++ b/crates/ruff_linter/src/settings/mod.rs @@ -351,7 +351,7 @@ impl LinterSettings { dummy_variable_rgx: DUMMY_VARIABLE_RGX.clone(), external: vec![], - ignore_init_module_imports: false, + ignore_init_module_imports: true, logger_objects: vec![], namespace_packages: vec![],