2020-01-07 20:46:18 +00:00
|
|
|
---
|
2022-05-04 15:01:23 +02:00
|
|
|
exclude: ^vendor/|^test/tools/vendor/
|
2020-01-07 20:46:18 +00:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
2025-04-09 14:14:28 +10:00
|
|
|
rev: v5.0.0
|
2020-01-07 20:46:18 +00:00
|
|
|
hooks:
|
2024-05-08 11:59:55 +02:00
|
|
|
# `buildah-tests.diff` is generated by 'git format-patch' and includes
|
2021-02-09 14:33:19 -07:00
|
|
|
# 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.
|
2024-11-07 11:57:50 +01:00
|
|
|
# `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.
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: end-of-file-fixer
|
2024-11-07 11:57:50 +01:00
|
|
|
exclude: test/buildah-bud/buildah-tests.diff|contrib/systemd/user|test/python/requirements.txt
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: trailing-whitespace
|
2023-12-31 11:53:53 +02:00
|
|
|
exclude: test/buildah-bud/buildah-tests.diff|test/e2e/quadlet/remap-keep-id2.container|test/e2e/quadlet/line-continuation-whitespace.container
|
2020-01-07 20:46:18 +00:00
|
|
|
- id: mixed-line-ending
|
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
|
- id: check-merge-conflict
|
2022-04-25 14:45:40 -04:00
|
|
|
- id: check-yaml
|
2025-05-21 10:17:02 -04:00
|
|
|
exclude: rpm/gating.yaml
|
2024-07-24 10:29:12 -10:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
|
|
|
# Configuration for codespell is in .codespellrc
|
2025-04-09 14:14:28 +10:00
|
|
|
rev: v2.4.1
|
2024-07-24 10:29:12 -10:00
|
|
|
hooks:
|
2025-04-09 14:14:28 +10:00
|
|
|
- id: codespell
|