Skip to content

Commit

Permalink
chore: add pre-commit hook
Browse files Browse the repository at this point in the history
- add bash script to delete all pdfs before commit
  • Loading branch information
mintyfrankie committed Aug 20, 2024
1 parent e6bb819 commit d44cdc9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ repos:
rev: 'v0.11.29'
hooks:
- id: typstyle
- repo: local
hooks:
- id: delete-all-pdfs
name: Delete all PDFs
entry: bash -c 'find . -type f -name "*.pdf" -delete'
language: system
types: [file]
files: \.pdf$

0 comments on commit d44cdc9

Please sign in to comment.