Skip to content

Commit

Permalink
ci(pre-commit): migrate pre-commit config (#43372)
Browse files Browse the repository at this point in the history
We update the names of the pre-commit stages. From the https://pre-commit.com/#confining-hooks-to-run-at-certain-stages:

new in 3.2.0: The values of stages match the hook names. Previously, commit, push, and merge-commit matched pre-commit, pre-push, and pre-merge-commit respectively.

(cherry picked from commit add8e9d)
  • Loading branch information
Lee-W authored and utkarsharma2 committed Oct 28, 2024
1 parent 6cad40e commit 65bcce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
---
default_stages: [commit, push]
default_stages: [pre-commit, pre-push]
default_language_version:
python: python3
node: 22.2.0
Expand Down

0 comments on commit 65bcce2

Please sign in to comment.