Skip to content

Commit

Permalink
Fix to maintain order of package paths
Browse files Browse the repository at this point in the history
  • Loading branch information
akamat10 committed Aug 21, 2024
1 parent 6bb335f commit 15be859
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pylint/lint/pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,12 @@ def check(self, files_or_modules: Sequence[str]) -> None:
)

extra_packages_paths = list(
{
discover_package_path(file_or_module, self.config.source_roots)
for file_or_module in files_or_modules
}
dict.fromkeys(
[
discover_package_path(file_or_module, self.config.source_roots)
for file_or_module in files_or_modules
]
).keys()
)

# TODO: Move the parallel invocation into step 3 of the checking process
Expand Down

0 comments on commit 15be859

Please sign in to comment.