Skip to content

Instantly share code, notes, and snippets.

@jeroenboeye
Last active December 12, 2023 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenboeye/6537611a117274b6c1c8955934844bec to your computer and use it in GitHub Desktop.
Save jeroenboeye/6537611a117274b6c1c8955934844bec to your computer and use it in GitHub Desktop.
Pre-commit hook to avoid Excel files being committed
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