Last active
December 12, 2023 14:36
-
-
Save jeroenboeye/6537611a117274b6c1c8955934844bec to your computer and use it in GitHub Desktop.
Pre-commit hook to avoid Excel files being committed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos: | |
- repo: local | |
hooks: | |
- id: avoid-excel-files | |
name: Check for Excel files | |
entry: Excel files should not be committed to the repo | |
language: fail | |
files: \.(xls|xlsx|xlsm)$ | |
description: 'Fails on Excel files, see: https://pre-commit.com/#fail' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment