Skip to content

Commit

Permalink
[CHORE] Exclude JSON pre-commit fixer for ipynb files (#1184)
Browse files Browse the repository at this point in the history
For some reason this is only happening in CI but not locally, breaking
our CI builds.

Let's disable this since ipynb files are not human-readable anyways.

Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
  • Loading branch information
jaychia and Jay Chia authored Jul 24, 2023
1 parent 6a36160 commit 355e494
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ repos:
- id: check-yaml
exclude: kubernetes-ops
- id: pretty-format-json
exclude: |
(?x)^(
tutorials/.*\.ipynb|
docs/.*\.ipynb
)$
args:
- --autofix
- --no-sort-keys
Expand Down

0 comments on commit 355e494

Please sign in to comment.