From 15be85988354dea0e51c0855d5ed08bf63a399ea Mon Sep 17 00:00:00 2001 From: akamat10 Date: Tue, 20 Aug 2024 23:10:33 -0400 Subject: [PATCH 1/5] Fix to maintain order of package paths --- pylint/lint/pylinter.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index 6bba99031a..cc4605b96a 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -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 From a7ecb86bcc07632bf9065a7c44e0a7347033f1ab Mon Sep 17 00:00:00 2001 From: akamat10 Date: Thu, 22 Aug 2024 22:24:40 -0400 Subject: [PATCH 2/5] Update fragment --- doc/whatsnew/fragments/9887.bugfix | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 doc/whatsnew/fragments/9887.bugfix diff --git a/doc/whatsnew/fragments/9887.bugfix b/doc/whatsnew/fragments/9887.bugfix new file mode 100644 index 0000000000..8196ac8f78 --- /dev/null +++ b/doc/whatsnew/fragments/9887.bugfix @@ -0,0 +1,2 @@ +Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace +Partially addresses #9883 From d0ae7def2e3fdec2a4050b4bdea835b53f748272 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 02:25:35 +0000 Subject: [PATCH 3/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/whatsnew/fragments/9887.bugfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whatsnew/fragments/9887.bugfix b/doc/whatsnew/fragments/9887.bugfix index 8196ac8f78..0b2fedb174 100644 --- a/doc/whatsnew/fragments/9887.bugfix +++ b/doc/whatsnew/fragments/9887.bugfix @@ -1,2 +1,2 @@ -Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace +Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace Partially addresses #9883 From 54457afd4537be59fc2965373f2afcc8015fa5c3 Mon Sep 17 00:00:00 2001 From: akamat10 Date: Thu, 22 Aug 2024 22:46:46 -0400 Subject: [PATCH 4/5] Update fragment --- doc/whatsnew/fragments/9887.bugfix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/whatsnew/fragments/9887.bugfix b/doc/whatsnew/fragments/9887.bugfix index 0b2fedb174..51a1a935c0 100644 --- a/doc/whatsnew/fragments/9887.bugfix +++ b/doc/whatsnew/fragments/9887.bugfix @@ -1,2 +1,3 @@ -Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace -Partially addresses #9883 +Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace. + +Refs #9883 From 8901361f4776c30abfbe7313e9f9c6006090b161 Mon Sep 17 00:00:00 2001 From: akamat10 Date: Thu, 22 Aug 2024 22:57:55 -0400 Subject: [PATCH 5/5] Rename fragments file --- doc/whatsnew/fragments/{9887.bugfix => 9883.bugfix} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/whatsnew/fragments/{9887.bugfix => 9883.bugfix} (100%) diff --git a/doc/whatsnew/fragments/9887.bugfix b/doc/whatsnew/fragments/9883.bugfix similarity index 100% rename from doc/whatsnew/fragments/9887.bugfix rename to doc/whatsnew/fragments/9883.bugfix