fix: KConfig files checks in pre-commit hook

This commit is contained in:
Jakub Kocka 2024-01-04 16:59:29 +01:00
parent 0b8e6c66c4
commit f47f2dc70f

View File

@ -61,7 +61,7 @@ args, unknown_args = parser.parse_known_args()
if args.exclude_submodules: if args.exclude_submodules:
ignore_dirs = ignore_dirs + tuple(get_submodule_dirs(full_path=True)) ignore_dirs = ignore_dirs + tuple(get_submodule_dirs(full_path=True))
files_to_check: list = [] files_to_check: list = args.files
# if the deprecated argument '--includes' is used all valid paths are checked for KConfigs # if the deprecated argument '--includes' is used all valid paths are checked for KConfigs
# except IGNORE_DIRS and submodules (if exclude is given) # except IGNORE_DIRS and submodules (if exclude is given)