[Merge] pull request #1318 from nanoric/pylint_and_yapf_config

[Mod] constant can be both UPPER_CASE or CamelCase
This commit is contained in:
vn.py 2019-01-05 21:51:26 +08:00 committed by GitHub
commit e3c22e3371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.