17 lines
553 B
Plaintext
17 lines
553 B
Plaintext
# pylintrc tweaks for use with edx_lint.
|
|
[MASTER]
|
|
ignore+ = ,.git,.tox,migrations,node_modules,.pycharm_helpers
|
|
init-hook="import sys; sys.path.extend(['lms/djangoapps', 'cms/djangoapps', 'common/djangoapps'])"
|
|
load-plugins+=,caniusepython3.pylint_checker
|
|
|
|
[MESSAGES CONTROL]
|
|
# Disable unicode-format-string until we can agree to turn it on.
|
|
disable+ =
|
|
native-string,
|
|
|
|
[BASIC]
|
|
attr-rgx = [a-z_][a-z0-9_]{2,40}$
|
|
argument-rgx = [a-z_][a-z0-9_]{2,40}$
|
|
variable-rgx = [a-z_][a-z0-9_]{2,40}$
|
|
class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$
|