The template for .pre-commit-config.yaml has been updated; see the diff below. Please either:
- Action this issue with a pull request applying some/all of these changes to
.pre-commit-config.yaml1.
- Close this issue if none of these changes are appropriate for this repo.
Also consider reviewing a full diff between the template and .pre-commit-config.yaml, in case other valuable shared conventions have previously been missed.
File Links
Diff
diff --git a/templates/.pre-commit-config.yaml b/templates/.pre-commit-config.yaml
index 080e90e..35f2ab2 100644
--- a/templates/.pre-commit-config.yaml
+++ b/templates/.pre-commit-config.yaml
@@ -13,6 +13,7 @@ ci:
# Alphabetised, for lack of a better order.
files: |
(?x)(
+ .github\/workflows\/.*|
benchmarks\/.+\.py|
docs\/.+\.py|
lib\/.+\.py|
@@ -120,3 +121,9 @@ repos:
hooks:
- id: validate-pyproject
+- repo: https://github.com/zizmorcore/zizmor-pre-commit
+ # This template does not keep up-to-date with versions, visit the repo to see the most recent release.
+ rev: v1.25.2
+ hooks:
+ - id: zizmor
+
Templating
The template for
.pre-commit-config.yamlhas been updated; see the diff below. Please either:.pre-commit-config.yaml1.Also consider reviewing a full diff between the template and
.pre-commit-config.yaml, in case other valuable shared conventions have previously been missed.File Links
.pre-commit-config.yamltemplates/.pre-commit-config.yamlDiff
Footnotes
Include this text in the PR body to avoid any prompts about applying your changes back to the template!
@scitools-templating: please no share prompt↩