diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c140d2..8e13dfb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,11 +7,11 @@ repos: exclude_types: [json, binary] - id: check-yaml - repo: https://github.com/psf/black-pre-commit-mirror - rev: "25.11.0" + rev: "25.12.0" hooks: - id: black-jupyter - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.6" + rev: "v0.14.10" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tests/tests.py b/tests/tests.py index 19a6063..f42f216 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -149,7 +149,7 @@ def test_tabular(pop_and_params): assert not np.allclose(spec / spec_lowz - 1.0, 0.0) # test the formed mass for single age - assert np.allclose(np.trapz(sfr, age) * 1e9, pop.formed_mass) + assert np.allclose(np.trapezoid(sfr, age) * 1e9, pop.formed_mass) # Multi-metallicity pop._zcontinuous = 3