ci: make markdown and toml hooks fix locally only
All checks were successful
CICD Start / Sanity and Base Decision (push) Successful in 38s
All checks were successful
CICD Start / Sanity and Base Decision (push) Successful in 38s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user