check_kconfigs and check_deprecated_kconfigs now use files arguments

This commit is contained in:
Fu Hanxi
2020-10-30 17:28:24 +08:00
parent bcc8f2628c
commit 47a97d2b52
4 changed files with 151 additions and 112 deletions

View File

@@ -34,16 +34,14 @@ repos:
always_run: true
- id: check-kconfigs
name: Validate Kconfig files
entry: tools/ci/check_kconfigs.py --exclude-submodules
entry: tools/ci/check_kconfigs.py
language: python
pass_filenames: false
always_run: true
files: '^Kconfig$|Kconfig.*$'
- id: check-deprecated-kconfigs-options
name: Check if any Kconfig Options Deprecated
entry: tools/ci/check_deprecated_kconfigs.py --exclude-submodules
entry: tools/ci/check_deprecated_kconfigs.py
language: python
pass_filenames: false
always_run: true
files: 'sdkconfig\.ci$|sdkconfig\.rename$|sdkconfig.*$'
- id: cmake-lint
name: Check CMake Files Format
entry: cmakelint --linelength=120 --spaces=4