Skip to content

Runtime type checking in tests #6

@sbiquard

Description

@sbiquard

I am wondering why the line for enabling runtime type checking with jaxtyping/beartype is commented out.

# addopts = '-ra --cov=furax --jaxtyping-packages=furax,beartype.beartype(conf=beartype.BeartypeConf(strategy=beartype.BeartypeStrategy.On))'

When trying to uncomment it and run pytest, I get the following error
RuntimeError: jaxtyping cannot check these packages because they are already imported: furax
which is due to the top-level tests/conftest.py importing furax (or at least, removing this import solves the problem).

After that, tests with runtime type checking do run, but many of them seem to error because of various reasons. We may want to fix that soon before the codebase get too big ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions