From d1d8f3f19885a11af1ee91dad05dc295f32f095f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:19:34 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 24.4.0 → 24.4.2](https://github.com/psf/black-pre-commit-mirror/compare/24.4.0...24.4.2) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d826aab..157e748 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - flake8-print # Using this mirror lets us use mypyc-compiled black, which is about 2x faster - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/pre-commit/pygrep-hooks From 9cd2c6df305604264e1ce6aec13e55f424375caa Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Tue, 30 Apr 2024 11:39:47 +0200 Subject: [PATCH 2/3] ci: use setup-fortran action --- .github/workflows/test_suite.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_suite.yaml b/.github/workflows/test_suite.yaml index faf6e50..3ec48a7 100644 --- a/.github/workflows/test_suite.yaml +++ b/.github/workflows/test_suite.yaml @@ -34,8 +34,11 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Setup GNU Fortran - uses: modflowpy/install-gfortran-action@v1.0.1 + - uses: fortran-lang/setup-fortran@v1 + id: setup-fortran + with: + compiler: gcc + version: 13 - name: Install run: pip install .[dev] - name: Run Tests From 5f25af0d27b35d6f0bfebaa97f9b2232ed9806d8 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Tue, 30 Apr 2024 11:43:50 +0200 Subject: [PATCH 3/3] style: missing whitespace around operator --- src/hmf/cosmology/growth_factor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmf/cosmology/growth_factor.py b/src/hmf/cosmology/growth_factor.py index b94f129..cdc04a4 100644 --- a/src/hmf/cosmology/growth_factor.py +++ b/src/hmf/cosmology/growth_factor.py @@ -110,7 +110,7 @@ def _d_plus(self, z: Union[float, np.ndarray]) -> Union[float, np.ndarray]: raise ValueError("Redshifts <0 not supported") if np.any(a < a_min): raise ValueError( - f"Cannot compute integral for z > {1/a_min - 1}. Set amin lower." + f"Cannot compute integral for z > {1 / a_min - 1}. Set amin lower." ) return (self.integral(a) - self.integral(a_min)) * self.cosmo.efunc(z)