Skip to content

Mypy

run(context, path='.', params='')

Run mypy in path with params.

Source code in saritasa_invocations/mypy.py
 6
 7
 8
 9
10
11
12
13
14
15
@invoke.task
def run(
    context: invoke.Context,
    path: str = ".",
    params: str = "",
) -> None:
    """Run mypy in `path` with `params`."""
    printing.print_success("Running MyPy")
    mypy_entry = _config.Config.from_context(context).python.mypy_entry
    python.run(context, command=f"{mypy_entry} {path} {params}")