|
| 1 | +[MASTER] |
| 2 | + |
| 3 | +# Specify a configuration file. |
| 4 | +#rcfile= |
| 5 | + |
| 6 | +# Python code to execute, usually for sys.path manipulation such as |
| 7 | +# pygtk.require(). |
| 8 | +#init-hook= |
| 9 | + |
| 10 | + |
| 11 | +# Add <file or directory> to the black list. It should be a base name, not a |
| 12 | +# path. You may set this option multiple times. |
| 13 | +ignore= |
| 14 | + |
| 15 | +# Pickle collected data for later comparisons. |
| 16 | +persistent=yes |
| 17 | + |
| 18 | +# List of plugins (as comma separated values of python modules names) to load, |
| 19 | +# usually to register additional checkers. |
| 20 | +load-plugins= |
| 21 | + |
| 22 | + |
| 23 | +[MESSAGES CONTROL] |
| 24 | + |
| 25 | +# Enable the message, report, category or checker with the given id(s). You can |
| 26 | +# either give multiple identifier separated by comma (,) or put this option |
| 27 | +# multiple time. |
| 28 | +#enable= |
| 29 | + |
| 30 | +# Disable the message, report, category or checker with the given id(s). You |
| 31 | +# can either give multiple identifier separated by comma (,) or put this option |
| 32 | +# multiple time. |
| 33 | +disable=import-error, |
| 34 | + missing-docstring, |
| 35 | + invalid-name, |
| 36 | + too-few-public-methods, |
| 37 | + redefined-builtin, |
| 38 | + duplicate-code, |
| 39 | + no-name-in-module, |
| 40 | + no-member, |
| 41 | + unsubscriptable-object, |
| 42 | + logging-format-interpolation |
| 43 | + |
| 44 | +[REPORTS] |
| 45 | + |
| 46 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 47 | +# (visual studio) and html |
| 48 | +output-format=colorized |
| 49 | + |
| 50 | + |
| 51 | +# Put messages in a separate file for each module / package specified on the |
| 52 | +# command line instead of printing them on stdout. Reports (if any) will be |
| 53 | +# written in a file name "pylint_global.[txt|html]". |
| 54 | +files-output=no |
| 55 | + |
| 56 | +# Tells whether to display a full report or only the messages |
| 57 | +reports=yes |
| 58 | + |
| 59 | +# Python expression which should return a note less than 10 (10 is the highest |
| 60 | +# note). You have access to the variables errors warning, statement which |
| 61 | +# respectively contain the number of errors / warnings messages and the total |
| 62 | +# number of statements analyzed. This is used by the global evaluation report |
| 63 | +# (R0004). |
| 64 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 65 | + |
| 66 | + |
| 67 | +[VARIABLES] |
| 68 | + |
| 69 | +# Tells whether we should check for unused import in __init__ files. |
| 70 | +init-import=no |
| 71 | + |
| 72 | +# A regular expression matching names used for dummy variables (i.e. not used). |
| 73 | +dummy-variables-rgx=_|dummy |
| 74 | + |
| 75 | +# List of additional names supposed to be defined in builtins. Remember that |
| 76 | +# you should avoid to define new builtins when possible. |
| 77 | +additional-builtins= |
| 78 | + |
| 79 | + |
| 80 | +[BASIC] |
| 81 | + |
| 82 | +# List of builtins function names that should not be used, separated by a comma |
| 83 | +bad-functions=map,filter,apply,input |
| 84 | + |
| 85 | +# Regular expression which should only match correct module names |
| 86 | +module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 87 | + |
| 88 | +# Regular expression which should only match correct module level names |
| 89 | +const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$ |
| 90 | + |
| 91 | +# Regular expression which should only match correct class names |
| 92 | +class-rgx=[a-zA-Z_][a-zA-Z0-9_]+$ |
| 93 | + |
| 94 | +# Regular expression which should only match correct function names |
| 95 | +function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 96 | + |
| 97 | +# Regular expression which should only match correct method names |
| 98 | +method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 99 | + |
| 100 | +# Regular expression which should only match correct instance attribute names |
| 101 | +attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 102 | + |
| 103 | +# Regular expression which should only match correct argument names |
| 104 | +argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 105 | + |
| 106 | +# Regular expression which should only match correct variable names |
| 107 | +variable-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 108 | + |
| 109 | +# Regular expression which should only match correct list comprehension / |
| 110 | +# generator expression variable names |
| 111 | +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 112 | + |
| 113 | +# Good variable names which should always be accepted, separated by a comma |
| 114 | +good-names=i,j,k,ex,Run,_ |
| 115 | + |
| 116 | +# Bad variable names which should always be refused, separated by a comma |
| 117 | +bad-names=foo,bar,baz,toto,tutu,tata |
| 118 | + |
| 119 | +# Regular expression which should only match functions or classes name which do |
| 120 | +# not require a docstring |
| 121 | +no-docstring-rgx=__.*__ |
| 122 | + |
| 123 | + |
| 124 | +[MISCELLANEOUS] |
| 125 | + |
| 126 | +# List of note tags to take in consideration, separated by a comma. |
| 127 | +notes=FIXME,XXX,TODO |
| 128 | + |
| 129 | + |
| 130 | +[FORMAT] |
| 131 | + |
| 132 | +# Maximum number of characters on a single line. |
| 133 | +max-line-length=120 |
| 134 | + |
| 135 | +# Maximum number of lines in a module |
| 136 | +max-module-lines=1100 |
| 137 | + |
| 138 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 139 | +# tab). |
| 140 | +indent-string=' ' |
| 141 | +indent-after-paren=4 |
| 142 | + |
| 143 | +[SIMILARITIES] |
| 144 | + |
| 145 | +# Minimum lines number of a similarity. |
| 146 | +min-similarity-lines=4 |
| 147 | + |
| 148 | +# Ignore comments when computing similarities. |
| 149 | +ignore-comments=yes |
| 150 | + |
| 151 | +# Ignore docstrings when computing similarities. |
| 152 | +ignore-docstrings=yes |
| 153 | + |
| 154 | + |
| 155 | +[TYPECHECK] |
| 156 | + |
| 157 | +# Tells whether missing members accessed in mixin class should be ignored. A |
| 158 | +# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 159 | +ignore-mixin-members=yes |
| 160 | + |
| 161 | +# List of classes names for which member attributes should not be checked |
| 162 | +# (useful for classes with attributes dynamically set). |
| 163 | +ignored-classes=SQLObject |
| 164 | + |
| 165 | +# List of members which are set dynamically and missed by pylint inference |
| 166 | +# system, and so shouldn't trigger E0201 when accessed. |
| 167 | +generated-members=REQUEST,acl_users,aq_parent |
| 168 | + |
| 169 | +[DESIGN] |
| 170 | + |
| 171 | +# Maximum number of arguments for function / method |
| 172 | +max-args=8 |
| 173 | + |
| 174 | +# Argument names that match this expression will be ignored. Default to name |
| 175 | +# with leading underscore |
| 176 | +ignored-argument-names=_.* |
| 177 | + |
| 178 | +# Maximum number of locals for function / method body |
| 179 | +max-locals=28 |
| 180 | + |
| 181 | +# Maximum number of return / yield for function / method body |
| 182 | +max-returns=6 |
| 183 | + |
| 184 | +# Maximum number of branch for function / method body |
| 185 | +max-branchs=12 |
| 186 | + |
| 187 | +# Maximum number of statements in function / method body |
| 188 | +max-statements=50 |
| 189 | + |
| 190 | +# Maximum number of parents for a class (see R0901). |
| 191 | +max-parents=7 |
| 192 | + |
| 193 | +# Maximum number of attributes for a class (see R0902). |
| 194 | +max-attributes=12 |
| 195 | + |
| 196 | +# Minimum number of public methods for a class (see R0903). |
| 197 | +min-public-methods=2 |
| 198 | + |
| 199 | +# Maximum number of public methods for a class (see R0904). |
| 200 | +max-public-methods=20 |
| 201 | + |
| 202 | + |
| 203 | +[IMPORTS] |
| 204 | + |
| 205 | +# Deprecated modules which should not be used, separated by a comma |
| 206 | +deprecated-modules=regsub,string,TERMIOS,Bastion,rexec |
| 207 | + |
| 208 | +# Create a graph of every (i.e. internal and external) dependencies in the |
| 209 | +# given file (report RP0402 must not be disabled) |
| 210 | +import-graph= |
| 211 | + |
| 212 | +# Create a graph of external dependencies in the given file (report RP0402 must |
| 213 | +# not be disabled) |
| 214 | +ext-import-graph= |
| 215 | + |
| 216 | +# Create a graph of internal dependencies in the given file (report RP0402 must |
| 217 | +# not be disabled) |
| 218 | +int-import-graph= |
| 219 | + |
| 220 | +# A comma-separated list of package or module names from where C extensions may |
| 221 | +# be loaded. Extensions are loading into the active Python interpreter and may |
| 222 | +# run arbitrary code. |
| 223 | +extension-pkg-whitelist=numpy,cv2,openvino,torch,tensorflow |
| 224 | + |
| 225 | + |
| 226 | +[CLASSES] |
| 227 | + |
| 228 | +# List of method names used to declare (i.e. assign) instance attributes. |
| 229 | +defining-attr-methods=__init__,__new__,setUp |
| 230 | + |
| 231 | +contextmanager-decorators=contextlib.contextmanager,tensorflow.python.util.tf_contextlib.contextmanager |
0 commit comments