Merge remote-tracking branch 'origin/develop' into xap

This commit is contained in:
QMK Bot
2026-02-10 16:48:22 +00:00
2 changed files with 17 additions and 6 deletions
+9 -6
View File
@@ -8,7 +8,7 @@ from milc import cli
from qmk.decorators import automagic_keyboard, automagic_keymap
from qmk.info import info_json
from qmk.keyboard import keyboard_completer, keyboard_folder_or_all, is_all_keyboards, list_keyboards
from qmk.keymap import locate_keymap, list_keymaps
from qmk.keymap import locate_keymap, list_keymaps, is_valid_keymap_name
from qmk.path import keyboard
from qmk.git import git_get_ignored_files
from qmk.c_parse import c_source_files, preprocess_c_file
@@ -245,18 +245,21 @@ def _handle_duplicating_code_defaults(kb, info):
def keymap_check(kb, km):
"""Perform the keymap level checks.
"""
ok = True
keymap_path = locate_keymap(kb, km)
if not keymap_path:
ok = False
cli.log.error("%s: Can't find %s keymap.", kb, km)
return ok
return False
if km in INVALID_KM_NAMES:
ok = False
cli.log.error("%s: The keymap %s should not exist!", kb, km)
return ok
return False
ok = True
if not is_valid_keymap_name(km):
cli.log.error(f'{kb}/{km}: Keymap name must contain only a-z, 0-9 and _!')
ok = False
# Additional checks
invalid_files = git_get_ignored_files(keymap_path.parent.as_posix())