mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-13 17:37:42 +00:00
The latest zizmore update fails to validate the pre-commit config as it cannot deal with the extra .git repo suffix anymore. Since it is not required simple remove it to also make the new version work with this. https://github.com/zizmorcore/zizmor/issues/2358 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
29 lines
1.3 KiB
YAML
29 lines
1.3 KiB
YAML
---
|
|
exclude: ^vendor/|^test/tools/vendor/
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
# `buildah-tests.diff` is generated by 'git format-patch' and includes
|
|
# trailing whitespace as part of its format. We can work around that,
|
|
# but unfortunately the buildah repo has some files with tabs, which
|
|
# git-diff formats as '[+/-]<space><tab>', which these hooks choke on.
|
|
# `contrib/systemd/user` and `test/python/requirements.txt` are symlinks
|
|
# but for some reason, on windows, pre-commit consider it as a regular
|
|
# file and tries to fix it. Just disable checks on these files as a
|
|
# special case.
|
|
- id: end-of-file-fixer
|
|
exclude: test/buildah-bud/buildah-tests.diff|contrib/systemd/user|test/python/requirements.txt
|
|
- id: trailing-whitespace
|
|
exclude: test/buildah-bud/buildah-tests.diff|test/e2e/quadlet/remap-keep-id2.container|test/e2e/quadlet/line-continuation-whitespace.container
|
|
- id: mixed-line-ending
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
exclude: rpm/gating.yaml
|
|
- repo: https://github.com/codespell-project/codespell
|
|
# Configuration for codespell is in .codespellrc
|
|
rev: v2.4.1
|
|
hooks:
|
|
- id: codespell
|