diff --git a/.cruft.json b/.cruft.json index 9fe45a8b7..fa53bd4af 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/sunpy/package-template", - "commit": "55170fd2032878eb5d446e27f0b1811847cc122f", + "commit": "07598e4e7ed228c3dc25cf87f07c3decc2a91c15", "checkout": null, "context": { "cookiecutter": { @@ -36,7 +36,7 @@ ".github/workflows/zizmor.yml" ], "_template": "https://github.com/sunpy/package-template", - "_commit": "55170fd2032878eb5d446e27f0b1811847cc122f" + "_commit": "07598e4e7ed228c3dc25cf87f07c3decc2a91c15" } }, "directory": null diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21259a7bd..f2442767a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ permissions: {} jobs: core: if: ${{ !github.event.repository.fork || github.event_name != 'schedule' }} - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@22ddf09dfabb443adddfb9f861b7d41a787d6b1a # v3.0.3 + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@8d5ad7efc8e84a051639373f6ea0d10441eafee1 # v3.2.1 permissions: id-token: write with: @@ -44,14 +44,14 @@ jobs: - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.13' - - run: python -m pip install -U --user build + - run: python -m pip install -U --user build twine "validate-pyproject[all]" + - run: validate-pyproject pyproject.toml - run: python -m build . --sdist - - run: python -m pip install -U --user twine - - run: python -m twine check dist/* + - run: python -m twine check --strict dist/* test: needs: [core, sdist_verify] - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@22ddf09dfabb443adddfb9f861b7d41a787d6b1a # v3.0.3 + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@8d5ad7efc8e84a051639373f6ea0d10441eafee1 # v3.2.1 permissions: id-token: write with: @@ -69,7 +69,7 @@ jobs: docs: needs: [core] - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@22ddf09dfabb443adddfb9f861b7d41a787d6b1a # v3.0.3 + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@8d5ad7efc8e84a051639373f6ea0d10441eafee1 # v3.2.1 with: default_python: '3.13' submodules: false @@ -94,7 +94,7 @@ jobs: contains(github.event.pull_request.labels.*.name, 'Run cron CI') ) needs: [core] - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@22ddf09dfabb443adddfb9f861b7d41a787d6b1a # v3.0.3 + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@8d5ad7efc8e84a051639373f6ea0d10441eafee1 # v3.2.1 permissions: id-token: write with: @@ -114,7 +114,7 @@ jobs: contains(github.event.pull_request.labels.*.name, 'Run publish') ) needs: [test, docs] - uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@22ddf09dfabb443adddfb9f861b7d41a787d6b1a # v3.0.3 + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@8d5ad7efc8e84a051639373f6ea0d10441eafee1 # v3.2.1 with: python-version: '3.13' test_extras: 'all,tests' @@ -134,7 +134,7 @@ jobs: name: pypi steps: - name: Download artifacts - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: merge-multiple: true pattern: dist-* @@ -143,7 +143,7 @@ jobs: - run: ls -lha dist/ - name: Run upload - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 + uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 notify: if: ${{ !cancelled() && (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') }} diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 89d4dd8a3..3f744a3ab 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -5,6 +5,10 @@ on: branches: ["main"] pull_request: branches: ["**"] + # Rescan weekly: an action can be disclosed as vulnerable while the repository is quiet. + # Not on the hour: GitHub delays or drops scheduled runs at the start of each hour. + schedule: + - cron: "17 7 * * 1" permissions: {} @@ -21,4 +25,4 @@ jobs: persist-credentials: false - name: Run zizmor 🌈 - uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4 + uses: zizmorcore/zizmor-action@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b8408559..c29299855 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # This should be before any formatting hooks like isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.16.9" + rev: "v0.17.1" hooks: - id: ruff-check args: ["--fix", "--show-fixes"]