Allow underscore prefixed constants

This commit is contained in:
Adrien Ufferte
2025-06-09 21:25:31 +02:00
parent 7d87e05df5
commit bcfd0a85d3
+1 -1
View File
@@ -6,7 +6,7 @@ EXCLUDED_DIRS = {"addons", ".git", ".github"}
PASCAL_CASE = re.compile(r"^[A-Z][A-Za-z0-9]*$")
SNAKE_CASE = re.compile(r"^_?[a-z][a-z0-9_]*$")
UPPER_SNAKE_CASE = re.compile(r"^[A-Z][A-Z0-9_]*$")
UPPER_SNAKE_CASE = re.compile(r"^_?[A-Z][A-Z0-9_]*$")
issues = []
MESSAGES = {