Skip to content

Commit

Permalink
Include global --config when determining namespace packages
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 22, 2024
1 parent 8379841 commit e207358
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ruff_workspace/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ impl<'a> Resolver<'a> {
// Determine whether any of the settings require namespace packages. If not, we can save
// a lookup for every file.
let has_namespace_packages = self
.settings
.values()
.settings()
.any(|settings| !settings.linter.namespace_packages.is_empty());

// Search for the package root for each file.
Expand Down

0 comments on commit e207358

Please sign in to comment.