Skip to content

Commit

Permalink
Exclude files/issue and files/motd from end-of-file-fixer
Browse files Browse the repository at this point in the history
These files may intentionally have one or more blank lines at the end,
so we do not want the end-of-file-fixer pre-commit linter to change
them.
  • Loading branch information
jsf9k committed Nov 25, 2024
1 parent de4f11e commit 45d7cbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ repos:
- --allow-missing-credentials
- id: detect-private-key
- id: end-of-file-fixer
exclude: files/(issue|motd)
- id: mixed-line-ending
args:
- --fix=lf
Expand Down

0 comments on commit 45d7cbc

Please sign in to comment.