From 7b7262d207e60a91451ebd6f2ef3a08658b29934 Mon Sep 17 00:00:00 2001 From: Roger Yang <80478925+RogerHYang@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:38:52 -0700 Subject: [PATCH] ci: update pre-commit to remove warnings (#5042) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47009bc5bf..65df33cb86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ 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 @@ -19,7 +19,7 @@ repos: - 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 @@ -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 ]