|
| 1 | +[REPORTS] |
| 2 | + |
| 3 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 4 | +# (visual studio) and html. |
| 5 | +output-format=colorized |
| 6 | + |
| 7 | +# Tells whether to display a full report or only the messages |
| 8 | +reports=yes |
| 9 | + |
| 10 | +# Python expression which should return a note less than 10 (10 is the highest |
| 11 | +# note). You have access to the variables errors warning, statement which |
| 12 | +# respectively contain the number of errors / warnings messages and the total |
| 13 | +# number of statements analyzed. This is used by the global evaluation report |
| 14 | +# (RP0004). |
| 15 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 16 | + |
| 17 | + |
| 18 | +[VARIABLES] |
| 19 | + |
| 20 | +# List of additional names supposed to be defined in builtins. Remember that |
| 21 | +# you should avoid to define new builtins when possible. |
| 22 | +additional-builtins=zip |
| 23 | + |
| 24 | +# List of strings which can identify a callback function by name. A callback |
| 25 | +# name must start or end with one of those strings. |
| 26 | +callbacks=cb_,_cb |
| 27 | + |
| 28 | + |
| 29 | +[BASIC] |
| 30 | + |
| 31 | +# List of builtins function names that should not be used, separated by a comma |
| 32 | +bad-functions=map,filter |
| 33 | + |
| 34 | +# Good variable names which should always be accepted, separated by a comma |
| 35 | +# x, y, X, Y - vector maxtrix of features and labels. |
| 36 | +# P, p - probability distribution |
| 37 | +# qs - query strategry |
| 38 | +# w, W - weight vector |
| 39 | +# N - number of instances |
| 40 | +# T, K - number of iterations |
| 41 | +good-names=i,j,k,_,X,Y,x,y,P,p,qs,w,W,N,T,K |
| 42 | + |
| 43 | +# Regular expression matching correct attribute names |
| 44 | +attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 45 | + |
| 46 | +# Naming hint for attribute names |
| 47 | +attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 48 | + |
| 49 | +# Regular expression matching correct variable names |
| 50 | +# start with X imply its a matrix for features |
| 51 | +variable-rgx=[a-z_X][a-z0-9_]{2,30}$ |
| 52 | + |
| 53 | +# Naming hint for variable names |
| 54 | +variable-name-hint=[a-z_X][a-z0-9_]{2,30}$ |
| 55 | + |
| 56 | +# Regular expression which should only match function or class names that do |
| 57 | +# not require a docstring. |
| 58 | +no-docstring-rgx=^_ |
| 59 | + |
| 60 | +# Minimum line length for functions/classes that require docstrings, shorter |
| 61 | +# ones are exempt. |
| 62 | +docstring-min-length=-1 |
| 63 | + |
| 64 | + |
| 65 | +[TYPECHECK] |
| 66 | + |
| 67 | +# List of module names for which member attributes should not be checked |
| 68 | +# (useful for modules/projects where namespaces are manipulated during runtime |
| 69 | +# and thus existing member attributes cannot be deduced by static analysis. It |
| 70 | +# supports qualified module names, as well as Unix pattern matching. |
| 71 | +ignored-modules=numpy,matplotlib,future_builtins |
| 72 | + |
| 73 | +# List of classes names for which member attributes should not be checked |
| 74 | +# (useful for classes with attributes dynamically set). This supports can work |
| 75 | +# with qualified names. |
| 76 | +ignored-classes= |
| 77 | + |
| 78 | +# List of members which are set dynamically and missed by pylint inference |
| 79 | +# system, and so shouldn't trigger E1101 when accessed. Python regular |
| 80 | +# expressions are accepted. |
| 81 | +generated-members= |
| 82 | + |
| 83 | + |
| 84 | +[FORMAT] |
| 85 | + |
| 86 | +# Maximum number of characters on a single line. |
| 87 | +max-line-length=79 |
| 88 | + |
| 89 | +# List of optional constructs for which whitespace checking is disabled. `dict- |
| 90 | +# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. |
| 91 | +# `trailing-comma` allows a space between comma and closing bracket: (a, ). |
| 92 | +# `empty-line` allows space-only lines. |
| 93 | +no-space-check=trailing-comma,dict-separator |
| 94 | + |
| 95 | +# Maximum number of lines in a module |
| 96 | +max-module-lines=1000 |
| 97 | + |
| 98 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 99 | +# tab). |
| 100 | +indent-string=' ' |
| 101 | + |
| 102 | +# Number of spaces of indent required inside a hanging or continued line. |
| 103 | +indent-after-paren=4 |
| 104 | + |
| 105 | +# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 106 | +expected-line-ending-format=LF |
| 107 | + |
| 108 | + |
| 109 | +[DESIGN] |
| 110 | + |
| 111 | +# Maximum number of arguments for function / method |
| 112 | +max-args=15 |
| 113 | + |
| 114 | +# sometimes more locals can handle computation more efficiently |
| 115 | +max-locals=30 |
| 116 | + |
| 117 | +# Maximum number of attributes for a class (see R0902). |
| 118 | +max-attributes=15 |
| 119 | + |
| 120 | + |
| 121 | +[MESSAGES CONTROL] |
| 122 | + |
| 123 | +# R0903 - Not enough public methods |
| 124 | +# E0611 - No name %r in module %r (countless false-positives) |
| 125 | +# E1101, E1103 - %s %r has no %r member (countless false-positives) |
| 126 | +# F0401 - Unable to import %r (error for c extensions) |
| 127 | +disable=R0903,E0611,E1101,E1103,F0401 |
| 128 | + |
| 129 | + |
| 130 | +[CLASSES] |
| 131 | + |
| 132 | +# List of method names used to declare (i.e. assign) instance attributes. |
| 133 | +defining-attr-methods=__init__,__new__,setUp |
| 134 | + |
| 135 | +# List of valid names for the first argument in a class method. |
| 136 | +valid-classmethod-first-arg=cls |
| 137 | + |
| 138 | +# List of valid names for the first argument in a metaclass class method. |
| 139 | +valid-metaclass-classmethod-first-arg=mcs |
0 commit comments