We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ec5ea commit f041004Copy full SHA for f041004
crates/ruff_linter/src/rules/pyflakes/mod.rs
@@ -248,6 +248,10 @@ mod tests {
248
&LinterSettings {
249
preview: PreviewMode::Enabled,
250
isort: isort::settings::Settings {
251
+ // This case specifically tests the scenario where
252
+ // the unused import is a first-party submodule import;
253
+ // use the isort settings to ensure that the `submodule.a` import
254
+ // is recognised as first-party in the test:
255
known_modules: isort::categorize::KnownModules::new(
256
vec!["submodule".parse().unwrap()],
257
vec![],
0 commit comments