From fa0273162690db86eeec09f45b077fc902722877 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 05:09:43 +0000 Subject: [PATCH 1/2] Renovate: paddyroddy/.github --- .github/workflows/deploy.yaml | 2 +- .github/workflows/documentation.yaml | 2 +- .github/workflows/licence.yaml | 2 +- .github/workflows/links.yaml | 2 +- .github/workflows/linting.yaml | 2 +- .github/workflows/test.yaml | 2 +- .pre-commit-config.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6df608c9..bc013a64 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 243e034c..f37f08be 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 efd53091..e52a49c2 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 1b8f4ad3..04b7a583 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 2208b027..1b771517 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 2153415b..3f011a0b 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 bf7280d7..9b96dd55 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 From f9530092e9978cc66112a27bbf22e9e29c71bbf3 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 3 Dec 2024 08:20:30 +0000 Subject: [PATCH 2/2] Linting --- src/sleplet/__init__.py | 2 +- src/sleplet/_bool_methods.py | 6 ++++-- src/sleplet/functions/fp.py | 6 +++--- src/sleplet/plotting/__init__.py | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/sleplet/__init__.py b/src/sleplet/__init__.py index 6434cf65..e82c5f7d 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 0579cd39..5fe14777 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 440dabcf..093c1eba 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 a76c8b1f..2d87cd3d 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", ]