Skip to content

Commit bb7b5cd

Browse files
tapaswenipathakilevkivskyi
authored andcommitted
Document how to suppress colorized output and summary line (#7448)
Fixes #7439.
1 parent 1b6dc3e commit bb7b5cd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/source/command_line.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,13 @@ in error messages.
503503

504504
main.py:12:9: error: Unsupported operand types for / ("int" and "str")
505505

506+
``--no-color-output``
507+
This flag will disable color output in error messages, enabled by default.
508+
509+
``--no-error-summary``
510+
This flag will disable error summary. By default mypy shows a summary line
511+
including total number of errors, number of files with errors, and number
512+
of files checked.
506513

507514
.. _incremental:
508515

docs/source/config_file.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,11 @@ section of the command line docs.
441441
``show_column_numbers`` (bool, default False)
442442
Shows column numbers in error messages.
443443

444+
``color_output`` (bool, default True)
445+
Shows error messages with color enabled.
446+
447+
``error_summary`` (bool, default True)
448+
Shows a short summary line after error messages.
444449

445450
Advanced options
446451
----------------

0 commit comments

Comments
 (0)