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 ?
I am wondering why the line for enabling runtime type checking with jaxtyping/beartype is commented out.
furax/pyproject.toml
Line 67 in 8a94cce
When trying to uncomment it and run pytest, I get the following error
RuntimeError: jaxtyping cannot check these packages because they are already imported: furaxwhich is due to the top-level
tests/conftest.pyimporting 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 ?