update stages names to the non-deprecated names

This commit is contained in:
Anthony Sottile 2024-09-30 20:47:31 -04:00
parent ed714747d7
commit 003dfa55c9
1 changed files with 10 additions and 5 deletions

View File

@ -3,7 +3,8 @@
description: prevents giant files from being committed. description: prevents giant files from being committed.
entry: check-added-large-files entry: check-added-large-files
language: python language: python
stages: [commit, push, manual] stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: check-ast - id: check-ast
name: check python ast name: check python ast
description: simply checks whether the files parse as valid python. description: simply checks whether the files parse as valid python.
@ -39,7 +40,8 @@
entry: check-executables-have-shebangs entry: check-executables-have-shebangs
language: python language: python
types: [text, executable] types: [text, executable]
stages: [commit, push, manual] stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: check-illegal-windows-names - id: check-illegal-windows-names
name: check illegal windows names name: check illegal windows names
entry: Illegal windows filenames detected entry: Illegal windows filenames detected
@ -57,7 +59,8 @@
entry: check-shebang-scripts-are-executable entry: check-shebang-scripts-are-executable
language: python language: python
types: [text] types: [text]
stages: [commit, push, manual] stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: pretty-format-json - id: pretty-format-json
name: pretty format json name: pretty format json
description: sets a standard for formatting json files. description: sets a standard for formatting json files.
@ -136,7 +139,8 @@
entry: end-of-file-fixer entry: end-of-file-fixer
language: python language: python
types: [text] types: [text]
stages: [commit, push, manual] stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0
- id: file-contents-sorter - id: file-contents-sorter
name: file contents sorter name: file contents sorter
description: sorts the lines in specified files (defaults to alphabetical). you must provide list of target files as input in your .pre-commit-config.yaml file. description: sorts the lines in specified files (defaults to alphabetical). you must provide list of target files as input in your .pre-commit-config.yaml file.
@ -203,4 +207,5 @@
entry: trailing-whitespace-fixer entry: trailing-whitespace-fixer
language: python language: python
types: [text] types: [text]
stages: [commit, push, manual] stages: [pre-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0