-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy path.pylintrc
55 lines (39 loc) · 1.54 KB
/
.pylintrc
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# To run this, install pylint and use the command:
#
# pylint core --rcfile=.pylintrc -i y
[GENERAL]
init-hook='import sys; sys.path.append("../oppia_tools/google_appengine_1.9.19/google_appengine")'
[BASIC]
# Regular expression which should only match correct function names
function-rgx=^[_a-z][a-z0-9_]*$
# Regular expression which should only match correct method names
method-rgx=^([_a-z][a-z0-9_]*|__[a-z0-9]+__)$
# Regular expression which should only match correct constant names
const-rgx=^(([A-Z_][A-Z0-9_]*)|(__.*__)|([a-z_]+_models)|([a-z_]+_services))$
# Good variable names which should always be accepted, separated by a comma
good-names=e,_,f,p,fs,id,sc,setUp,tearDown,longMessage,maxDiff
# Regex for dummy variables (to prevent 'unused argument' errors)
dummy-variables-rgx=_|unused_*
[DESIGN]
# Minimum number of public methods for a class (see R0903).
min-public-methods=0
[FORMAT]
indent-string=' '
[SIMILARITIES]
ignore-imports=yes
[MESSAGES CONTROL]
# TODO(sll): Re-enable the following checks:
# arguments-differ
# broad-except
# fixme
# missing-docstring
# no-member
# no-self-use
# redefined-variable-type
# too-many-branches
# too-many-instance-attributes
# too-many-lines
# too-many-locals
# too-many-statements
# and fix those issues.
disable=locally-disabled,locally-enabled,logging-not-lazy,arguments-differ,broad-except,fixme,missing-docstring,no-member,no-self-use,redefined-variable-type,too-many-branches,too-many-instance-attributes,too-many-lines,too-many-locals,too-many-statements