Report generation

If these options are set, mypy will generate a report in the specifiedformat into the specified directory.

  • any_exprs_report (string)
  • Causes mypy to generate a text file report documenting how manyexpressions of type Any are present within your codebase.
  • cobertura_xml_report (string)
  • Causes mypy to generate a Cobertura XML type checking coverage report.

You must install the lxml library to generate this report.

  • html_report / xslt_html_report (string)
  • Causes mypy to generate an HTML type checking coverage report.

You must install the lxml library to generate this report.

  • linecount_report (string)
  • Causes mypy to generate a text file report documenting the functionsand lines that are typed and untyped within your codebase.
  • linecoverage_report (string)
  • Causes mypy to generate a JSON file that maps each source file’sabsolute filename to a list of line numbers that belong to typedfunctions in that file.
  • lineprecision_report (string)
  • Causes mypy to generate a flat text file report with per-modulestatistics of how many lines are typechecked etc.
  • txt_report / xslt_txt_report (string)
  • Causes mypy to generate a text file type checking coverage report.

You must install the lxml library to generate this report.

  • xml_report (string)
  • Causes mypy to generate an XML type checking coverage report.

You must install the lxml library to generate this report.