Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

zizmorcore/zizmor-pre-commit

Open more actions menu

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.28.0
  hooks:
    # Run the linter.
    - id: zizmor

To autofix issues, set the following args:

repos:
- repo: https://github.com/zizmorcore/zizmor-pre-commit
  # Zizmor version.
  rev: v1.28.0
  hooks:
    # Run the linter.
    - id: zizmor
      args: [--no-progress, --fix]

(--no-progress must be specified since that arg exists in the repo's hook configuration, and args overrides all existing args)

License

zizmor-pre-commit is licensed under:

Morty Proxy This is a proxified and sanitized view of the page, visit original site.