ci: put file sorter to the end of the pre-commit checking

So that the sorter will be done at the end of the checking flow, we don't need to run pre-commit hooks again if another hook also take effect.
This commit is contained in:
Michael (XIAO Xufeng)
2021-04-26 15:58:03 +08:00
parent 7ff41e406b
commit 4919358d6b

View File

@@ -22,8 +22,6 @@ repos:
- id: end-of-file-fixer
exclude: *whitespace_excludes
- id: check-executables-have-shebangs
- id: file-contents-sorter
files: 'tools/ci/executable-list.txt'
- id: mixed-line-ending
args: ['-f=lf']
- id: double-quote-string-fixer
@@ -75,3 +73,8 @@ repos:
language: python
files: '\.gitlab/CODEOWNERS'
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: file-contents-sorter
files: 'tools/ci/executable-list.txt'