Skip to content

Commit 1ae07f0

Browse files
author
Josh Hoyt
committed
[project @ Allow all-caps constants in the PyLint config]
1 parent b4a193d commit 1ae07f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ no-docstring-rgx=__.*__
1515
module-rgx=[a-z_][a-z0-9_]*$
1616

1717
# Regular expression which should only match correct module level names
18-
const-rgx=(([a-z_][a-z0-9_]*)|(__.*__))$
18+
const-rgx=(([a-z_][a-z0-9_]{3,30})|(__.*__)|([A-Z_][A-Z0-9_]{3,30}))$
1919

2020
# Regular expression which should only match correct class names
2121
class-rgx=[A-Z_][a-zA-Z0-9]+$

0 commit comments

Comments
 (0)