From 5df14c034ded83114a40877eaefec95b3ef95966 Mon Sep 17 00:00:00 2001 From: Dexter Kennedy Date: Fri, 26 Apr 2024 18:41:59 -0400 Subject: [PATCH 1/2] changed verbose mode to print entire config file path --- mypy/build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mypy/build.py b/mypy/build.py index 65a06211c87e7..5e2009d49068d 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -2850,10 +2850,15 @@ def skipping_ancestor(manager: BuildManager, id: str, path: str, ancestor_for: S def log_configuration(manager: BuildManager, sources: list[BuildSource]) -> None: """Output useful configuration information to LOG and TRACE""" + # If config file is not None, retrieve the absolute path for convenience + config_file = None + if manager.options.config_file: + config_file = os.path.abspath(manager.options.config_file) + manager.log() configuration_vars = [ ("Mypy Version", __version__), - ("Config File", (manager.options.config_file or "Default")), + ("Config File", (config_file or "Default")), ("Configured Executable", manager.options.python_executable or "None"), ("Current Executable", sys.executable), ("Cache Dir", manager.options.cache_dir), From 3eaffa0f86d25fe6e00b65a08c10809e9f77b8d7 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 27 Apr 2024 01:56:29 -0700 Subject: [PATCH 2/2] Update mypy/build.py --- mypy/build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mypy/build.py b/mypy/build.py index 5e2009d49068d..84c85e66bd49e 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -2850,10 +2850,9 @@ def skipping_ancestor(manager: BuildManager, id: str, path: str, ancestor_for: S def log_configuration(manager: BuildManager, sources: list[BuildSource]) -> None: """Output useful configuration information to LOG and TRACE""" - # If config file is not None, retrieve the absolute path for convenience - config_file = None - if manager.options.config_file: - config_file = os.path.abspath(manager.options.config_file) + config_file = manager.options.config_file + if config_file: + config_file = os.path.abspath(config_file) manager.log() configuration_vars = [