Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fail_fast: true

repos:
# Built-in hooks for basic file validation
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -18,7 +20,9 @@ repos:
rev: v4.4.0
hooks:
- id: pretty-format-json
args: [--autofix, --indent=2]
# --no-sort-keys preserves author-controlled ordering (notably the
# `openapi` field position); we only normalize indentation.
args: [--autofix, --indent=2, --no-sort-keys]
files: ^docs\.json$

# Local hooks for Mintlify-specific validation
Expand Down
Loading