Skip to content

Commit a1900c2

Browse files
Log full path to config file in verbose output (#17180)
Contributes to #6544
1 parent 6ebce43 commit a1900c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypy/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2850,10 +2850,14 @@ def skipping_ancestor(manager: BuildManager, id: str, path: str, ancestor_for: S
28502850
def log_configuration(manager: BuildManager, sources: list[BuildSource]) -> None:
28512851
"""Output useful configuration information to LOG and TRACE"""
28522852

2853+
config_file = manager.options.config_file
2854+
if config_file:
2855+
config_file = os.path.abspath(config_file)
2856+
28532857
manager.log()
28542858
configuration_vars = [
28552859
("Mypy Version", __version__),
2856-
("Config File", (manager.options.config_file or "Default")),
2860+
("Config File", (config_file or "Default")),
28572861
("Configured Executable", manager.options.python_executable or "None"),
28582862
("Current Executable", sys.executable),
28592863
("Cache Dir", manager.options.cache_dir),

0 commit comments

Comments
 (0)