Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime type checking in tests #6

Open
sbiquard opened this issue Dec 23, 2024 · 0 comments
Open

Runtime type checking in tests #6

sbiquard opened this issue Dec 23, 2024 · 0 comments

Comments

@sbiquard
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant