From 0682a8152a10284f5fcaac11e1f8833a6d62d4ea Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Tue, 12 Aug 2025 20:00:01 -0700 Subject: [PATCH] chore(pre-commit): add a few more checks to pre-commit --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b55a0a86..f2abfad8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,10 +8,21 @@ repos: rev: v5.0.0 # Latest stable version hooks: - id: check-merge-conflict + args: ['--assume-in-merge'] - id: check-added-large-files args: ['--maxkb=1000'] + - id: trailing-whitespace + exclude: '\.py$' # Exclude Python files as Ruff already handles them - id: end-of-file-fixer exclude: '^(.*\.svg)$' + - id: check-yaml + args: ["--unsafe"] + - id: detect-private-key + - id: check-executables-have-shebangs + - id: check-json + - id: check-shebang-scripts-are-executable + - id: check-symlinks + - id: check-toml - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.9.4