Skip to content

Commit e88c8d9

Browse files
committed
enable --pretty by default
1 parent 8d9ffc1 commit e88c8d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mypy/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,8 @@ def add_invertible_flag(
991991
group=error_group,
992992
)
993993
add_invertible_flag(
994-
"--pretty",
994+
"--no-pretty",
995+
dest="pretty",
995996
default=True,
996997
help="Use visually nicer output in error messages:"
997998
" Use soft word wrap, show source code snippets,"

mypy/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def __init__(self) -> None:
356356
self.hide_error_codes = False
357357
self.show_error_code_links = False
358358
# Use soft word wrap and show trimmed source snippets with error location markers.
359-
self.pretty = False
359+
self.pretty = True
360360
self.dump_graph = False
361361
self.dump_deps = False
362362
self.logical_deps = False

0 commit comments

Comments
 (0)