mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-11 16:37:39 +00:00
Merge pull request #24490 from l0rd/pre-commit-fix-for-windows
Excluse symlink from pre-commit end-of-file-fixer
This commit is contained in:
commit
e3770f5d85
1 changed files with 5 additions and 4 deletions
|
|
@ -8,11 +8,12 @@ repos:
|
|||
# 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` is a symlink 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.
|
||||
# `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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue