diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46d0534..16f7765 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,13 @@ exclude: ^.cruft.json|.copier-answers.yml$ +# prek auto-update config (pre-commit warns about this key, and ignores it) +update: + repos: + # the fork also moves minor tags (v1.17) to off-branch commits for its Docker + # action; only take exact releases + https://github.com/kjanat/actionlint: + include_tags: "v*.*.*" + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 @@ -145,8 +153,9 @@ repos: - id: check-github-actions - id: check-github-workflows - id: check-readthedocs - - repo: https://github.com/rhysd/actionlint - rev: v1.7.12 + # Maintained fork of rhysd/actionlint (inactive since 2026-04), supports `uses: $/` + - repo: https://github.com/kjanat/actionlint + rev: v1.17.0 hooks: - id: actionlint - repo: https://github.com/zizmorcore/zizmor-pre-commit diff --git a/project_name/.github/workflows/{% if in_pypi %}build-and-publish.yml{% endif %}.jinja b/project_name/.github/workflows/{% if in_pypi %}build-and-publish.yml{% endif %}.jinja index f146bfa..da84c6d 100644 --- a/project_name/.github/workflows/{% if in_pypi %}build-and-publish.yml{% endif %}.jinja +++ b/project_name/.github/workflows/{% if in_pypi %}build-and-publish.yml{% endif %}.jinja @@ -24,7 +24,7 @@ env: jobs: ci: - uses: ./.github/workflows/ci.yml + uses: $/.github/workflows/ci.yml build-and-inspect-package: needs: ci diff --git a/project_name/.pre-commit-config.yaml.jinja b/project_name/.pre-commit-config.yaml.jinja index 126c21d..59c6207 100644 --- a/project_name/.pre-commit-config.yaml.jinja +++ b/project_name/.pre-commit-config.yaml.jinja @@ -11,6 +11,14 @@ ci: autofix_commit_msg: '[pre-commit.ci] 🎨 pre-commit fixes' autoupdate_schedule: quarterly +# prek auto-update config (pre-commit warns about this key, and ignores it) +update: + repos: + # the fork also moves minor tags (v1.17) to off-branch commits for its Docker + # action; only take exact releases + https://github.com/kjanat/actionlint: + include_tags: "v*.*.*" + repos: # Sync Python and pre-commit package versions # pyproject.toml -> uv.lock @@ -214,7 +222,8 @@ repos: - id: check-github-actions - id: check-github-workflows - id: check-readthedocs - - repo: https://github.com/rhysd/actionlint + # Maintained fork of rhysd/actionlint (inactive since 2026-04), supports `uses: $/` + - repo: https://github.com/kjanat/actionlint rev: hooks: - id: actionlint