From 5fc68373d3ee0ce61cfb819f0e623e3a3f63c374 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 10 Jun 2023 10:59:25 +0200 Subject: Allow to specify a layout script Add the `script` attribute, which will be used to implement script-specific extra keys. --- check_layout.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'check_layout.py') diff --git a/check_layout.py b/check_layout.py index c38705e..f0c1a34 100644 --- a/check_layout.py +++ b/check_layout.py @@ -61,6 +61,9 @@ def check_layout(layout): unexpected_keys(keys, bottom_row_keys, "Layout contains keys present in the bottom row") + if root.get("script") == None: + warn("Layout doesn't specify a script.") + for fname in sys.argv[1:]: layout = parse_layout(fname) if layout == None: -- cgit v1.2.3