Skip to content

Commit

Permalink
ci: update pre-commit to remove warnings (#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang authored Oct 16, 2024
1 parent 5e895cb commit 7b7262d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ repos:
name: clean-notebooks
files: \.ipynb$
exclude: ^tutorials/evals/.*\.ipynb$
stages: [ commit ]
stages: [ pre-commit ]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --inplace
- repo: local
hooks:
- id: format-notebooks
name: format-notebooks
files: \.ipynb$
stages: [ commit ]
stages: [ pre-commit ]
language: system
entry: nbqa ruff --fix --ignore=E402 --ignore=E501 --ignore=F704
- repo: https://github.com/pre-commit/mirrors-prettier
Expand All @@ -45,4 +45,4 @@ repos:
name: Check branch before committing
entry: bash -c '[[ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]] || { echo "Should not commit to local main branch."; exit 1; }'
language: system
stages: [ commit ]
stages: [ pre-commit ]

0 comments on commit 7b7262d

Please sign in to comment.