From 022034746ea0f13f24d4cf3bdc671e232c1e2545 Mon Sep 17 00:00:00 2001 From: Jakub Kocka Date: Wed, 24 Jan 2024 08:48:18 +0100 Subject: [PATCH] refactor(pre-commit): Changed esp-idf-kconfig's kconfcheck package to pre-commit hook --- .pre-commit-config.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 045c8ff965..fc4c850be0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,13 +65,6 @@ repos: language: python pass_filenames: false always_run: true - - id: check-kconfigs - name: Validate Kconfig files - entry: tools/ci/check_kconfigs.py - language: python - additional_dependencies: - - esp-idf-kconfig>=2.0.2 - files: '^Kconfig$|Kconfig.*$' - id: check-deprecated-kconfigs-options name: Check if any Kconfig Options Deprecated entry: tools/ci/check_deprecated_kconfigs.py @@ -231,3 +224,7 @@ repos: - id: 'sphinx-lint' name: Lint rST files in docs folder using Sphinx Lint files: ^(docs/en|docs/zh_CN)/.*\.(rst|inc)$ + - repo: https://github.com/espressif/esp-idf-kconfig.git + rev: v2.1.0 + hooks: + - id: check-kconfig-files