• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sm00thix / cvmatrix / 28550477534 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 01 Jul 2026 10:02PM UTC
Files 3
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jul 2026 09:58PM UTC coverage: 96.281% (+0.06%) from 96.218%
28550477534.1

push

github

web-flow
Do not import JAX at module import time (v3.2.1) (#21)

`import cvmatrix` previously imported JAX whenever JAX was installed, because
the module-level array/scalar type aliases (`Array`, `Scalar`, `FloatDType`,
`_TRACER_TYPES`) were built from `jax` at import time. This made downstream
packages that only use the NumPy backend pay the JAX import cost.

- Defer annotations with `from __future__ import annotations` (keeping them as
  strings) and keep the aliases NumPy-only at import; `FloatDType` uses
  `npt.DTypeLike` (which already admits JAX scalar dtypes without importing JAX).
- Broaden `Array`/`Scalar`/`_TRACER_TYPES` in-place to admit `jax.Array` via a
  new `_enable_jax_typing()`, called only when the JAX backend is resolved. With
  string annotations, typeguard resolves them against the broadened aliases at
  call time, so `backend="jax"` values still pass runtime type checks.
- JAX is now imported lazily only for `backend="jax"`; `import cvmatrix` stays
  JAX-free even when JAX is installed.

The NumPy and JAX backends are behavior- and result-identical to 3.2.0 (numpy
byte-identical), verified by the existing suite under typeguard for both backends.

233 of 242 relevant lines covered (96.28%)

0.96 hits per line

Source Files on job ubuntu-latest-python-3.11-numpy-only - 28550477534.1
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28550477534
  • bd1ffb4c on github
  • Prev Job for on main (#28414701959.9)
  • Next Job for on main (#28798481468.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc