From e224bf57c6f428ac0a930788d79c8a9e9ff33446 Mon Sep 17 00:00:00 2001 From: copilotcoder Date: Wed, 1 Jul 2026 18:47:22 -0400 Subject: [PATCH] ci: make markdown and toml hooks fix locally only --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5767b12..60b637f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,7 @@ repos: rev: v0.45.0 hooks: - id: markdownlint + entry: bash -c 'if [ "${CI:-}" = "true" ]; then markdownlint "$@"; else markdownlint --fix "$@"; fi' -- files: \.(md|markdown)$ # TOML linting @@ -25,7 +26,7 @@ repos: rev: v2.14.0 hooks: - id: pretty-format-toml - args: [--check] + entry: bash -c 'if [ "${CI:-}" = "true" ]; then pretty-format-toml --check "$@"; else pretty-format-toml --autofix "$@"; fi' -- # Python backend linting and formatting with ruff - repo: local