-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
pylintrc_tweaks
41 lines (39 loc) · 1.17 KB
/
pylintrc_tweaks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# pylintrc tweaks for use with edx_lint.
[MASTER]
ignore+ = ,.git,.tox,migrations,node_modules,.pycharm_helpers
load-plugins = edx_lint.pylint,pylint_django,pylint_celery,pylint_pytest
[MESSAGES CONTROL]
disable+ =
# Disable new refactoring suggestions for now, we have more important things to fix first
import-outside-toplevel,
inconsistent-return-statements,
no-else-break,
no-else-continue,
useless-object-inheritance,
useless-suppression,
cyclic-import,
logging-format-interpolation,
wrong-import-order,
consider-using-dict-items,
unnecessary-dict-index-lookup,
arguments-renamed,
consider-using-from-import,
consider-using-enumerate,
no-member,
consider-using-with,
unspecified-encoding,
unused-variable,
unused-argument,
unsubscriptable-object,
abstract-method,
not-callable,
unsupported-binary-operation,
missing-timeout,
c-extension-no-member,
no-name-in-module,
unnecessary-lambda-assignment,
[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}|(__.*__))$