From 535c2cdc97cd6a28880e13ff0bb96229a41379e1 Mon Sep 17 00:00:00 2001 From: nanoric Date: Sat, 5 Jan 2019 04:22:27 -0400 Subject: [PATCH] [Mod] constant can be both UPPER_CASE or CamelCase UPPER_CASE if for normal constant, CamelCase is for Type aliases. --- .pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 7438aa1d..31be539b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -153,11 +153,11 @@ class-naming-style=PascalCase #class-rgx= # Naming style matching correct constant names. -const-naming-style=UPPER_CASE +#const-naming-style=UPPER_CASE # Regular expression matching correct constant names. Overrides const-naming- # style. -#const-rgx= +const-rgx=(([A-Z_][A-Za-z0-9_]*)|(__.*__))$ # Minimum line length for functions/classes that require docstrings, shorter # ones are exempt.