Skip to content

Commit f041004

Browse files
committed
add comment
1 parent 83ec5ea commit f041004

File tree

1 file changed

+4
-0
lines changed
  • crates/ruff_linter/src/rules/pyflakes

1 file changed

+4
-0
lines changed

crates/ruff_linter/src/rules/pyflakes/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ mod tests {
248248
&LinterSettings {
249249
preview: PreviewMode::Enabled,
250250
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:
251255
known_modules: isort::categorize::KnownModules::new(
252256
vec!["submodule".parse().unwrap()],
253257
vec![],

0 commit comments

Comments
 (0)