Appease the gods of formatting.

This commit is contained in:
Nick Brassel 2025-01-24 09:26:14 +11:00
commit 1c4c6ae280
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -45,7 +45,7 @@ def _render_keycodes(module_jsons):
lines.append(f' {key},')
lines.append(' LAST_COMMUNITY_MODULE_KEY')
lines.append('};')
lines.append('_Static_assert(LAST_COMMUNITY_MODULE_KEY <= QK_COMMUNITY_MODULE_MAX, "Too many community module keycodes");')
lines.append('_Static_assert((int)LAST_COMMUNITY_MODULE_KEY <= (int)(QK_COMMUNITY_MODULE_MAX+1), "Too many community module keycodes");')
return lines

View file

@ -6,6 +6,7 @@ from milc.attrdict import AttrDict
from qmk.json_schema import json_load, validate
from qmk.util import truthy
class ModuleAPI(AttrDict):
def __init__(self, **kwargs):
super().__init__()
@ -28,6 +29,7 @@ MODULE_API_LIST = [
MODULE_API_VERSION = '20250122'
def load_module_jsons(modules):
"""Load the module JSON files, matching the specified order.
"""