Configuring error messages

For more information, see the Configuring error messagessection of the command line docs.

These options may only be set in the global section ([mypy]).

  • show_error_context (bool, default False)
  • Prefixes each error with the relevant context.
  • show_column_numbers (bool, default False)
  • Shows column numbers in error messages.
  • show_error_codes (bool, default False)
  • Shows error codes in error messages. See Error codes for more information.
  • pretty (bool, default False)
  • Use visually nicer output in error messages: use soft word wrap,show source code snippets, and show error location markers.
  • color_output (bool, default True)
  • Shows error messages with color enabled.
  • error_summary (bool, default True)
  • Shows a short summary line after error messages.
  • show_absolute_path (bool, default False)
  • Show absolute paths to files.