diff --git a/.gitlab/CODEOWNERS b/.gitlab/CODEOWNERS index 6ee4f4927a..56f701a2ee 100644 --- a/.gitlab/CODEOWNERS +++ b/.gitlab/CODEOWNERS @@ -200,3 +200,11 @@ /tools/unit-test-app/ @esp-idf-codeowners/system @esp-idf-codeowners/tools requirements.txt @esp-idf-codeowners/tools + +# sort-order-reset + +^[Ignore Lists] +/tools/ci/check_copyright_ignore.txt @esp-idf-codeowners/ci @esp-idf-codeowners/tools +/tools/ci/check_examples_cmake_make-cmake_ignore.txt @esp-idf-codeowners/ci @esp-idf-codeowners/tools +/tools/ci/check_examples_cmake_make-make_ignore.txt @esp-idf-codeowners/ci @esp-idf-codeowners/tools +/tools/ci/mypy_ignore_list.txt @esp-idf-codeowners/ci @esp-idf-codeowners/tools diff --git a/tools/ci/check_codeowners.py b/tools/ci/check_codeowners.py index b45a827341..3c7010b28e 100755 --- a/tools/ci/check_codeowners.py +++ b/tools/ci/check_codeowners.py @@ -2,19 +2,8 @@ # # Utility script for ESP-IDF developers to work with the CODEOWNERS file. # -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import os @@ -132,7 +121,10 @@ def action_ci_check(args): if line.startswith('# sort-order-reset'): prev_path_pattern = '' - if not line or line.startswith('#'): + if (not line + or line.startswith('#') # comment + or line.startswith('[') # file group + or line.startswith('^[')): # optional file group continue # Each line has a form of " +" diff --git a/tools/ci/check_copyright_ignore.txt b/tools/ci/check_copyright_ignore.txt index 2a5fa2434b..1e51b7d12a 100644 --- a/tools/ci/check_copyright_ignore.txt +++ b/tools/ci/check_copyright_ignore.txt @@ -3967,7 +3967,6 @@ tools/check_term.py tools/ci/check_artifacts_expire_time.py tools/ci/check_build_warnings.py tools/ci/check_callgraph.py -tools/ci/check_codeowners.py tools/ci/check_deprecated_kconfigs.py tools/ci/check_examples_cmake_make.py tools/ci/check_executables.py