Skip to content

Static analysis of type hints using mypy #702

@marvinpfoertner

Description

@marvinpfoertner

Is your feature request related to a problem? Please describe.
probnum uses type hints quite extensively. However, since we do not run any static analysis tool on them, they are very prone to errors.

Describe the solution you'd like.

  • add mypy to linting-requirements.txt and pin the major version number
  • add a mypy environment to the tox configuration (similar to the pylint environment)
  • add mypy configuration to the pyproject.toml file
  • add a mypy check to our GitHub Actions CI pipeline, initially only checking
    • probnum._function
    • probnum.pn_method

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for features to be implementedtesting and CIUnit tests, coverage and continuous integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions