Skip to content

Add Type checking step? #122

Description

@ChrisBarker-NOAA

What should we add?

There are a fair bit (complete?, no idea) of type annotations in the code.

It's not a great idea to have the annotations and not be running a type checker on them. Bad / incorrect annotations are worse that no annotations.

I have no experience with type checkers, but it seems MyPy is the most used now (though pyright is also ...).

Here's some advice on how to get started:

https://mypy.readthedocs.io/en/latest/existing_code.html#using-mypy-with-an-existing-codebase

@ocefpaf: Do you have any experience setting this up?

Reference

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions