Skip to content

Commit

Permalink
full path included for config file in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexter Kennedy committed Apr 26, 2024
1 parent a868e1c commit 97947bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 97947bb

Please sign in to comment.