From 021ea6baabea10f1bed3536392828ca95e9e19fe Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 7 Jan 2019 18:29:18 +0000 Subject: [PATCH] Allow _T_ as a valid function name This is used for deferred translations. --- .pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 9b476c80e..7c9e256fa 100644 --- a/.pylintrc +++ b/.pylintrc @@ -126,10 +126,10 @@ class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ # Regular expression matching correct function names -function-rgx=[a-z_][a-z0-9_]{2,30}$ +function-rgx=(([a-z_][a-z0-9_]{2,30})|(_T_))$ # Naming hint for function names -function-name-hint=[a-z_][a-z0-9_]{2,30}$ +function-name-hint=(([a-z_][a-z0-9_]{2,30})|(_T_))$ # Regular expression matching correct inline iteration names inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$