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