Skip to content

Instantly share code, notes, and snippets.

@elliasmatheus
Created March 3, 2024 23:55
Show Gist options
  • Select an option

  • Save elliasmatheus/f47eca2b1ea80cbf02a2c2950f023d01 to your computer and use it in GitHub Desktop.

Select an option

Save elliasmatheus/f47eca2b1ea80cbf02a2c2950f023d01 to your computer and use it in GitHub Desktop.
Precommit
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ['--maxkb=500']
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-ast
- id: check-docstring-first
- id: debug-statements
- id: detect-private-key
- id: check-executables-have-shebangs
files: \.(sh|bash)$
- id: check-json
- id: check-toml
- id: check-yaml
- id: no-commit-to-branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment