[to #42322933] update ast_index logic

This commit is contained in:
zhangzhicheng.zzc
2023-01-11 10:43:56 +08:00
parent 346af6773f
commit 42898badf7
6 changed files with 127 additions and 31 deletions

View File

@@ -3,17 +3,31 @@ repos:
rev: 4.0.0
hooks:
- id: flake8
exclude: thirdparty/|examples/
exclude: |
(?x)^(
thirdparty/|
examples/|
modelscope/utils/ast_index_file.py
)$
- repo: https://github.com/PyCQA/isort.git
rev: 4.3.21
hooks:
- id: isort
exclude: examples
exclude: |
(?x)^(
examples/|
modelscope/utils/ast_index_file.py
)$
- repo: https://github.com/pre-commit/mirrors-yapf.git
rev: v0.30.0
hooks:
- id: yapf
exclude: thirdparty/|examples/
exclude: |
(?x)^(
thirdparty/|
examples/|
modelscope/utils/ast_index_file.py
)$
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.1.0
hooks: