Skip to content

Commit

Permalink
Log full path to config file in verbose output (#17180)
Browse files Browse the repository at this point in the history
Contributes to #6544
  • Loading branch information
dexterkennedy committed Apr 27, 2024
1 parent 6ebce43 commit a1900c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2850,10 +2850,14 @@ 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"""

config_file = manager.options.config_file
if config_file:
config_file = os.path.abspath(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),
Expand Down

0 comments on commit a1900c2

Please sign in to comment.