Disable Rich tracebacks by default (#6576)

This commit is contained in:
Jakub Kuczys
2025-08-09 23:45:03 +02:00
committed by GitHub
parent b177c80b4e
commit 2dbbb51208
2 changed files with 22 additions and 1 deletions

View File

@@ -314,6 +314,19 @@ def parse_cli_flags(args):
default=None,
help="Forcefully disables the Rich logging handlers.",
)
# DEP-WARN: use argparse.BooleanOptionalAction when we drop support for Python 3.8
parser.add_argument(
"--rich-tracebacks",
action="store_true",
default=False,
help="Format the Python exception tracebacks using Rich (with syntax highlighting)."
" *May* be useful to increase traceback readability during development.",
)
parser.add_argument(
"--no-rich-tracebacks",
action="store_false",
dest="rich_tracebacks",
)
parser.add_argument(
"--rich-traceback-extra-lines",
type=non_negative_int,