diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f80070ebe..7cbc826751 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -141,7 +141,7 @@ repos: name: Check if all apps readme files match given .build-test-rules.yml files. Modify the supported target tables entry: tools/ci/check_build_test_rules.py check-readmes language: python - files: 'tools/test_apps/.+|examples/.+|components/.+|tools/idf_py_actions/constants.py|tools/ci/check_build_test_rules.py' + files: 'tools/.+|examples/.+|components/.+' require_serial: true additional_dependencies: - PyYAML == 5.3.1 diff --git a/tools/ci/check_build_test_rules.py b/tools/ci/check_build_test_rules.py index 923028173c..8c029c6aa4 100755 --- a/tools/ci/check_build_test_rules.py +++ b/tools/ci/check_build_test_rules.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import argparse import os @@ -336,14 +336,12 @@ if __name__ == '__main__': if check_all: check_dirs = {IDF_PATH} - _exclude_dirs = [ - os.path.join(IDF_PATH, 'tools', 'test_build_system', 'build_test_app'), - os.path.join(IDF_PATH, 'tools', 'test_build_system', 'buildv2_test_app'), - os.path.join(IDF_PATH, 'tools', 'templates', 'sample_project'), - os.path.join(IDF_PATH, 'tools', 'cmakev2', 'test'), - ] - else: - _exclude_dirs = [os.path.join(IDF_PATH, 'tools', 'templates', 'sample_project')] + + _exclude_dirs = [ + os.path.join(IDF_PATH, 'tools', 'test_build_system'), + os.path.join(IDF_PATH, 'tools', 'templates', 'sample_project'), + os.path.join(IDF_PATH, 'tools', 'cmakev2', 'test'), + ] _bypass_targets: list[str] = [] if arg.config: