From e49868c2bda9708c92a35474262ddfe14af0fdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sat, 4 Jun 2022 13:49:52 +0200 Subject: Store namespaces respective to directories (#6789) Co-authored-by: Pierre Sassoulas --- pylint/config/config_initialization.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pylint/config/config_initialization.py') diff --git a/pylint/config/config_initialization.py b/pylint/config/config_initialization.py index b5bd31234..7c67d08d6 100644 --- a/pylint/config/config_initialization.py +++ b/pylint/config/config_initialization.py @@ -106,6 +106,9 @@ def _config_initialization( linter._parse_error_mode() + # Link the base Namespace object on the current directory + linter._directory_namespaces[Path(".").resolve()] = (linter.config, {}) + # parsed_args_list should now only be a list of files/directories to lint. # All other options have been removed from the list. return parsed_args_list -- cgit v1.2.1