diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6df608c9c..bc013a64a 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@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/python/deployment@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: pyproject-toml: ./pyproject.toml python-version: "3.12" diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 243e034cc..f37f08be8 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@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/python/pdoc@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: docs-dependency-section: .[docs] gh-pages-publish-directory: ./html/sleplet diff --git a/.github/workflows/licence.yaml b/.github/workflows/licence.yaml index efd53091f..e52a49c21 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@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/licence@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} licence-file: ./LICENCE.txt diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 1b8f4ad36..04b7a5831 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@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/links@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 2208b0277..1b771517a 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@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/linting@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: pre-commit-config: ./.pre-commit-config.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2153415b9..3f011a0b4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,7 +23,7 @@ jobs: - "3.12" steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/tox@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0 + - uses: paddyroddy/.github/actions/python/tox@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0 with: cache-path: |- .tox diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf7280d76..9b96dd552 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/paddyroddy/.github - rev: v0.241.0 + rev: v0.254.0 hooks: - id: general-hooks - id: python-hooks diff --git a/src/sleplet/__init__.py b/src/sleplet/__init__.py index 6434cf652..e82c5f7dd 100644 --- a/src/sleplet/__init__.py +++ b/src/sleplet/__init__.py @@ -7,8 +7,8 @@ "noise", "plot_methods", "plotting", - "slepian_methods", "slepian", + "slepian_methods", "wavelet_methods", ] diff --git a/src/sleplet/_bool_methods.py b/src/sleplet/_bool_methods.py index 0579cd392..5fe147770 100644 --- a/src/sleplet/_bool_methods.py +++ b/src/sleplet/_bool_methods.py @@ -24,8 +24,10 @@ def is_limited_lat_lon( ) -> bool: """Define a region by angles, just need one to not be the default.""" return ( - not is_polar_cap(phi_min, phi_max, theta_min, theta_max) - and phi_min != sleplet._vars.PHI_MIN_DEFAULT + ( + not is_polar_cap(phi_min, phi_max, theta_min, theta_max) + and phi_min != sleplet._vars.PHI_MIN_DEFAULT + ) or phi_max != sleplet._vars.PHI_MAX_DEFAULT or theta_min != sleplet._vars.THETA_MIN_DEFAULT ) diff --git a/src/sleplet/functions/fp.py b/src/sleplet/functions/fp.py index 440dabcf5..093c1eba1 100644 --- a/src/sleplet/functions/fp.py +++ b/src/sleplet/functions/fp.py @@ -41,10 +41,10 @@ def __post_init__(self: typing_extensions.Self) -> None: def rotate( # noqa: D102 self: typing_extensions.Self, - alpha: float, # noqa: ARG002 - beta: float, # noqa: ARG002 + alpha: float, + beta: float, *, - gamma: float = 0, # noqa: ARG002 + gamma: float = 0, ) -> npt.NDArray[np.complex128]: msg = "Slepian rotation is not defined" raise NotImplementedError(msg) diff --git a/src/sleplet/plotting/__init__.py b/src/sleplet/plotting/__init__.py index a76c8b1fe..2d87cd3da 100644 --- a/src/sleplet/plotting/__init__.py +++ b/src/sleplet/plotting/__init__.py @@ -4,6 +4,6 @@ from ._create_plot_sphere import PlotSphere __all__ = [ - "PlotSphere", "PlotMesh", + "PlotSphere", ]