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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e31a081..72a3bac 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.3.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/pre-commit/pygrep-hooks @@ -46,7 +46,7 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py38-plus] 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)