Skip to content

zizmorcore/zizmor-pre-commit

Repository files navigation

zizmor-pre-commit

image image Actions status

A pre-commit hook for zizmor.

Distributed as a standalone repository to enable installing zizmor via prebuilt wheels from PyPI.

Using zizmor with pre-commit

To run zizmor via pre-commit, add the following to your .pre-commit-config.yaml:

repos:
- repo: https://github.com/zizmorcore/zizmor-pre-commit
  # Zizmor version.
  rev: v1.17.0
  hooks:
    # Run the linter.
    - id: zizmor

Important

Starting with v1.17.0, the default behavior of the hook changed from collecting a specific set of YAML inputs (within pre-commit itself) to allowing zizmor to discover inputs internally. This is both faster and more consistent with how zizmor expects to be invoked, but it may be a breaking change for some users who have explicitly configured inputs.

See zizmor-pre-commit#22 for additional information.

License

zizmor-pre-commit is licensed under: