Skip to content

Make mypy precommit script easier to understand #5685

@canyon289

Description

@canyon289

Description of your problem

The mypy output on failure is dense and hard to read. It would benefit from improvements to smooth development workflow

Ideas

  • Break apart failures that are preexisting, versus the ones introduced last commit
  • Make the output easier to read by segmenting by file more cleanly than the massive wall of text right now such as
    • Split errors from notes
    • Format the output so the error is more readable, right now its a mix of single or multi line so its hard to discern easily where one starts and the other ends

The output is a dataframe that can be easily iterated over and worked with.

Script is here
https://github.com/pymc-devs/pymc/blob/741d45540016ab52a15ad5bff521614b6ae1d835/scripts/run_mypy.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions