Skip to content

Commit

Permalink
Merge pull request #24490 from l0rd/pre-commit-fix-for-windows
Browse files Browse the repository at this point in the history
Excluse symlink from pre-commit end-of-file-fixer
  • Loading branch information
openshift-merge-bot[bot] authored Nov 7, 2024
2 parents 6598a36 + d49497c commit e3770f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit e3770f5

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.