From 3e8b0c9e1a3fdf73692651816c2c9b5aae4179d2 Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Thu, 28 Aug 2025 21:03:14 -0600 Subject: [PATCH] register catch-dotenv hook --- .pre-commit-hooks.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index a98a1e5..fa385c6 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -23,6 +23,13 @@ entry: check-builtin-literals language: python types: [python] +- id: catch-dotenv + name: catch dotenv files + description: blocks committing .env files. optionally creates value-sanitized .env.example. + entry: catch-dotenv + language: python + pass_filenames: true + always_run: false - id: check-case-conflict name: check for case conflicts description: checks for files that would conflict in case-insensitive filesystems.