Commit a229ef5f authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.optimistix: ignore DeprecationWarning in pytest

parent 7c93e453
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
  lineax,
  typing-extensions,

  # checks
  # tests
  beartype,
  jaxlib,
  optax,
@@ -53,6 +53,13 @@ buildPythonPackage rec {
    pytest-xdist
  ];

  pytestFlagsArray = [
    # Since jax 0.5.3:
    # DeprecationWarning: shape requires ndarray or scalar arguments, got <class 'jax._src.api.ShapeDtypeStruct'> at position 0. In a future JAX release this will be an error.
    "-W"
    "ignore::DeprecationWarning"
  ];

  meta = {
    description = "Nonlinear optimisation (root-finding, least squares, ...) in JAX+Equinox";
    homepage = "https://github.com/patrick-kidger/optimistix";