Skip to content

Commit

Permalink
Toggle missed default
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Mar 12, 2024
1 parent 08cfc01 commit c11d7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
@@ -1,17 +1,11 @@
---
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
2 |
3 | print(__path__)
|
= help: Remove unused import: `os`

Unsafe fix
1 |-import os
2 1 |
3 2 | print(__path__)
4 3 |
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/settings/mod.rs
Expand Up @@ -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![],

Expand Down

0 comments on commit c11d7b7

Please sign in to comment.