diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index b5081f113f91..a01c9c85515a 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -937,6 +937,7 @@ in error messages. Use visually nicer output in error messages: use soft word wrap, show source code snippets, and show error location markers. + This is enabled by default. Use ``--no-pretty`` to disable. .. option:: --no-color-output diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index 77f952471007..b226d2c9e955 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -904,7 +904,7 @@ These options may only be set in the global section (``[mypy]``). .. confval:: pretty :type: boolean - :default: False + :default: True Use visually nicer output in error messages: use soft word wrap, show source code snippets, and show error location markers. diff --git a/mypy/options.py b/mypy/options.py index 9bfbc5f68af8..39137dfe2443 100644 --- a/mypy/options.py +++ b/mypy/options.py @@ -365,7 +365,7 @@ def __init__(self) -> None: self.hide_error_codes = False self.show_error_code_links = False # Use soft word wrap and show trimmed source snippets with error location markers. - self.pretty = False + self.pretty = True self.dump_graph = False self.dump_deps = False self.logical_deps = False