From d44cdc9d1b592b39da2080d0b8e5d7d7628a3d41 Mon Sep 17 00:00:00 2001 From: mintyfrankie <77310871+mintyfrankie@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:52:41 +0200 Subject: [PATCH] chore: add pre-commit hook - add bash script to delete all pdfs before commit --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c77519..1af9bf8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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$