From b93ce25e0bd55cd83e4ee3edebecbbac60aaba1c Mon Sep 17 00:00:00 2001 From: James Braza Date: Tue, 10 Mar 2026 22:38:39 -0700 Subject: [PATCH] Excluding lock files from pre-commit hooks --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 37721e3..c831437 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,9 +4,15 @@ args: [--check] language: python types: [toml] + # These are TOML files per `identify`, but are generated and should not be sorted. + # SEE: https://regex101.com/r/nkPvmd/1 + exclude: '(^|/)(uv\.lock|poetry\.lock|Cargo\.lock)$' - id: toml-sort-fix name: toml-sort-fix entry: toml-sort args: [--in-place] language: python types: [toml] + # These are TOML files per `identify`, but are generated and should not be sorted. + # SEE: https://regex101.com/r/nkPvmd/1 + exclude: '(^|/)(uv\.lock|poetry\.lock|Cargo\.lock)$'