Skip to content

Commit 27fb14d

Browse files
committed
hooks/namespell: Add UEFI rule + fix warning message
Signed-off-by: Pawel Langowski <[email protected]>
1 parent 09ef570 commit 27fb14d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/namespell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"coreboot": "coreboot",
1111
"Yocto": "Yocto",
1212
"NVIDIA": "NVIDIA",
13+
"UEFI": "UEFI",
1314
}
1415

1516
COMMENT_STRINGS = {
@@ -66,7 +67,7 @@ def __get_active_rules(
6667
removed = active_rules.pop(rule, None)
6768
if removed is None:
6869
print(
69-
f"Warning: {filename}:{line_number}: {rule} rule does not exist. Available rules: {NAME_RULES.keys()}"
70+
f"Warning: {filename}:{line_number}: {rule} rule does not exist. Available rules: {list(NAME_RULES.keys())}"
7071
)
7172

7273
return active_rules, are_file_rules

0 commit comments

Comments
 (0)