Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full path to config file #17180

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
changed verbose mode to print entire config file path
  • Loading branch information
Dexter Kennedy committed Apr 26, 2024
commit 5df14c034ded83114a40877eaefec95b3ef95966
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)
hauntsaninja marked this conversation as resolved.
Show resolved Hide resolved

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
Loading