Skip to content

Commit 0c60161

Browse files
authored
[infra] Update pre-commit config to exclude yapf (#16316)
This commit updates yapf exclude to add files in .yapfignore list. It is a workaround to avoid errors when pre-commit yapf tries to check file in .yapfignore list. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
1 parent bed5619 commit 0c60161

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ repos:
4242
compiler/fm-equalize/fm-equalize$
4343
)
4444
# Ignore shell script: one-prepare-venv
45+
# Exclude files in .yapfignore - yapf's pre-commit issue
4546
exclude:
46-
^compiler/one-cmds/one-prepare-venv$
47+
(?x)^(
48+
compiler/one-cmds/one-prepare-venv|
49+
runtime/3rdparty/.*|
50+
runtime/tests/nnapi/nnapi_test_generator/.*|
51+
runtime/tests/nnapi/specs/.*
52+
)$
4753

4854
- repo: https://github.com/pre-commit/mirrors-clang-format
4955
rev: 'v16.0.6'

0 commit comments

Comments
 (0)