diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e9e9c288..375b5268 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,7 +17,7 @@ jobs: id-token: write steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/deployment@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/python/deployment@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: pyproject-toml: ./pyproject.toml python-version: "3.12" diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index e91d05e8..cd3fcad5 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/pdoc@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/python/pdoc@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: docs-dependency-section: .[docs] gh-pages-publish-directory: ./html/sleplet diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index e47cd2fe..42c04b6d 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -35,7 +35,7 @@ jobs: key: readme-${{ hashFiles('pyproject.toml') }} - name: Install dependencies - run: python -m pip install -e .[readme] + run: python -m pip install -e '.[readme]' - name: Run examples in the README run: python -m pytest --codeblocks .github README.md documentation diff --git a/.github/workflows/licence.yaml b/.github/workflows/licence.yaml index 893358a6..ee465074 100644 --- a/.github/workflows/licence.yaml +++ b/.github/workflows/licence.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/licence@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/licence@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} licence-file: ./LICENCE.txt diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 04579d3b..aca8572e 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -14,6 +14,6 @@ jobs: timeout-minutes: 2 steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/links@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/links@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 9f4fd082..8f77ee64 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/linting@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/linting@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: pre-commit-config: ./.pre-commit-config.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9c428986..d9520cb2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,7 +24,7 @@ jobs: - "3.12" steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/tox@18d8678a5aea33da18556ae7823433325631dadd # v0 + - uses: paddyroddy/.github/actions/python/tox@ac424c5397b4f9c7a6c082bb7196373a887e44f4 # v0 with: cache-path: |- .tox diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc994f57..63817a85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/paddyroddy/.github - rev: v0.195.0 + rev: v0.213.0 hooks: - id: general-hooks - id: python-hooks diff --git a/src/sleplet/functions/axisymmetric_wavelet_coefficients_africa.py b/src/sleplet/functions/axisymmetric_wavelet_coefficients_africa.py index c133bfbf..a648ea42 100644 --- a/src/sleplet/functions/axisymmetric_wavelet_coefficients_africa.py +++ b/src/sleplet/functions/axisymmetric_wavelet_coefficients_africa.py @@ -92,7 +92,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/axisymmetric_wavelet_coefficients_earth.py b/src/sleplet/functions/axisymmetric_wavelet_coefficients_earth.py index 6dbbc675..c5a78fd8 100644 --- a/src/sleplet/functions/axisymmetric_wavelet_coefficients_earth.py +++ b/src/sleplet/functions/axisymmetric_wavelet_coefficients_earth.py @@ -89,7 +89,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/axisymmetric_wavelet_coefficients_south_america.py b/src/sleplet/functions/axisymmetric_wavelet_coefficients_south_america.py index 4ca3f87f..8eee52ba 100644 --- a/src/sleplet/functions/axisymmetric_wavelet_coefficients_south_america.py +++ b/src/sleplet/functions/axisymmetric_wavelet_coefficients_south_america.py @@ -91,7 +91,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/axisymmetric_wavelets.py b/src/sleplet/functions/axisymmetric_wavelets.py index f733d170..8294b0c8 100644 --- a/src/sleplet/functions/axisymmetric_wavelets.py +++ b/src/sleplet/functions/axisymmetric_wavelets.py @@ -76,7 +76,7 @@ def _create_wavelets(self: typing_extensions.Self) -> npt.NDArray[np.complex128] @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/ridgelets.py b/src/sleplet/functions/ridgelets.py index 126765c8..00cd7089 100644 --- a/src/sleplet/functions/ridgelets.py +++ b/src/sleplet/functions/ridgelets.py @@ -111,7 +111,7 @@ def _compute_ring(self: typing_extensions.Self) -> npt.NDArray[np.complex128]: @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/slepian.py b/src/sleplet/functions/slepian.py index e0d28f82..649b2e32 100644 --- a/src/sleplet/functions/slepian.py +++ b/src/sleplet/functions/slepian.py @@ -79,7 +79,7 @@ def _validate_rank(self: typing_extensions.Self) -> None: @pydantic.field_validator("rank") def _check_rank( - cls, # noqa: ANN101 + cls, v: int, ) -> int: if v < 0: diff --git a/src/sleplet/functions/slepian_wavelet_coefficients_africa.py b/src/sleplet/functions/slepian_wavelet_coefficients_africa.py index 012e6d62..6dc1c87c 100644 --- a/src/sleplet/functions/slepian_wavelet_coefficients_africa.py +++ b/src/sleplet/functions/slepian_wavelet_coefficients_africa.py @@ -97,7 +97,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/slepian_wavelet_coefficients_south_america.py b/src/sleplet/functions/slepian_wavelet_coefficients_south_america.py index 80d007c3..4d7c7a7c 100644 --- a/src/sleplet/functions/slepian_wavelet_coefficients_south_america.py +++ b/src/sleplet/functions/slepian_wavelet_coefficients_south_america.py @@ -97,7 +97,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/slepian_wavelets.py b/src/sleplet/functions/slepian_wavelets.py index c57273d2..d78886c4 100644 --- a/src/sleplet/functions/slepian_wavelets.py +++ b/src/sleplet/functions/slepian_wavelets.py @@ -70,7 +70,7 @@ def _create_wavelets(self: typing_extensions.Self) -> npt.NDArray[np.float64]: @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/functions/spherical_harmonic.py b/src/sleplet/functions/spherical_harmonic.py index 998b0288..1bc18d26 100644 --- a/src/sleplet/functions/spherical_harmonic.py +++ b/src/sleplet/functions/spherical_harmonic.py @@ -51,7 +51,7 @@ def _setup_args(self: typing_extensions.Self) -> None: @pydantic.field_validator("ell") def _check_ell( - cls, # noqa: ANN101 + cls, v: int, info: pydantic.ValidationInfo, ) -> int: @@ -65,7 +65,7 @@ def _check_ell( @pydantic.field_validator("m") def _check_m( - cls, # noqa: ANN101 + cls, v: int, info: pydantic.ValidationInfo, ) -> int: diff --git a/src/sleplet/meshes/mesh_basis_functions.py b/src/sleplet/meshes/mesh_basis_functions.py index 1d4630ad..8e7a27b6 100644 --- a/src/sleplet/meshes/mesh_basis_functions.py +++ b/src/sleplet/meshes/mesh_basis_functions.py @@ -66,7 +66,7 @@ def _validate_rank(self: typing_extensions.Self) -> None: @pydantic.field_validator("rank") def _check_rank( - cls, # noqa: ANN101 + cls, v: int, ) -> int: if v < 0: diff --git a/src/sleplet/meshes/mesh_slepian_functions.py b/src/sleplet/meshes/mesh_slepian_functions.py index 788287ed..db69bada 100644 --- a/src/sleplet/meshes/mesh_slepian_functions.py +++ b/src/sleplet/meshes/mesh_slepian_functions.py @@ -68,7 +68,7 @@ def _validate_rank(self: typing_extensions.Self) -> None: @pydantic.field_validator("rank") def _check_rank( - cls, # noqa: ANN101 + cls, v: int, ) -> int: if v < 0: diff --git a/src/sleplet/meshes/mesh_slepian_wavelet_coefficients.py b/src/sleplet/meshes/mesh_slepian_wavelet_coefficients.py index 6931ce2d..f0b1ed01 100644 --- a/src/sleplet/meshes/mesh_slepian_wavelet_coefficients.py +++ b/src/sleplet/meshes/mesh_slepian_wavelet_coefficients.py @@ -81,7 +81,7 @@ def _create_wavelet_coefficients( @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/meshes/mesh_slepian_wavelets.py b/src/sleplet/meshes/mesh_slepian_wavelets.py index a3ac07b3..57d0ab95 100644 --- a/src/sleplet/meshes/mesh_slepian_wavelets.py +++ b/src/sleplet/meshes/mesh_slepian_wavelets.py @@ -67,7 +67,7 @@ def _create_wavelets(self: typing_extensions.Self) -> npt.NDArray[np.float64]: @pydantic.field_validator("j") def _check_j( - cls, # noqa: ANN101 + cls, v: int | None, info: pydantic.ValidationInfo, ) -> int | None: diff --git a/src/sleplet/slepian/region.py b/src/sleplet/slepian/region.py index 63c2f3b9..3c9f1c36 100644 --- a/src/sleplet/slepian/region.py +++ b/src/sleplet/slepian/region.py @@ -94,7 +94,7 @@ def _identify_region(self: typing_extensions.Self) -> None: @pydantic.field_validator("phi_max") def _check_phi_max( - cls, # noqa: ANN101 + cls, v: float, ) -> float: if v < sleplet._vars.PHI_MIN_DEFAULT: @@ -110,7 +110,7 @@ def _check_phi_max( @pydantic.field_validator("phi_min") def _check_phi_min( - cls, # noqa: ANN101 + cls, v: float, ) -> float: if v < sleplet._vars.PHI_MIN_DEFAULT: @@ -126,7 +126,7 @@ def _check_phi_min( @pydantic.field_validator("theta_max") def _check_theta_max( - cls, # noqa: ANN101 + cls, v: float, ) -> float: if v < sleplet._vars.THETA_MIN_DEFAULT: @@ -142,7 +142,7 @@ def _check_theta_max( @pydantic.field_validator("theta_min") def _check_theta_min( - cls, # noqa: ANN101 + cls, v: float, ) -> float: if v < sleplet._vars.THETA_MIN_DEFAULT: diff --git a/src/sleplet/slepian/slepian_polar_cap.py b/src/sleplet/slepian/slepian_polar_cap.py index a7388232..a25cebba 100644 --- a/src/sleplet/slepian/slepian_polar_cap.py +++ b/src/sleplet/slepian/slepian_polar_cap.py @@ -399,7 +399,7 @@ def _clean_evals_and_evecs( @pydantic.field_validator("order") def _check_order( - cls, # noqa: ANN101 + cls, v: int | npt.NDArray[np.int_] | None, info: pydantic.ValidationInfo, ) -> int | npt.NDArray[np.int_] | None: @@ -410,7 +410,7 @@ def _check_order( @pydantic.field_validator("theta_max") def _check_theta_max( - cls, # noqa: ANN101 + cls, v: float, ) -> float: if v == 0: