|
| 1 | +[MASTER] |
| 2 | +# Specify a configuration file. |
| 3 | +rcfile= |
| 4 | + |
| 5 | +# Python code to execute, usually for sys.path manipulation such as |
| 6 | +# pygtk.require(). |
| 7 | +init-hook= |
| 8 | + |
| 9 | +# Add files or directories to the blacklist. They should be base names, not paths. |
| 10 | +ignore=.devcontainer,addons,venv,node_modules,dist |
| 11 | + |
| 12 | +# Add files or directories matching the regex patterns to the blacklist. |
| 13 | +ignore-patterns= |
| 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 | +# Use multiple processes to speed up Pylint. |
| 23 | +jobs=1 |
| 24 | + |
| 25 | +# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 26 | +# active Python interpreter and may run arbitrary code. |
| 27 | +unsafe-load-any-extension=no |
| 28 | + |
| 29 | +# A comma-separated list of package or module names from where C extensions may |
| 30 | +# be loaded. Extensions are loading into the active Python interpreter and may |
| 31 | +# run arbitrary code |
| 32 | +extension-pkg-whitelist= |
| 33 | + |
| 34 | +[MESSAGES CONTROL] |
| 35 | +# Disable specific warnings for Odoo development |
| 36 | +disable= |
| 37 | + missing-docstring, |
| 38 | + too-few-public-methods, |
| 39 | + too-many-arguments, |
| 40 | + unused-argument, |
| 41 | + line-too-long, |
| 42 | + invalid-name, |
| 43 | + import-error, |
| 44 | + no-member |
| 45 | + |
| 46 | +[REPORTS] |
| 47 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 48 | +# (visual studio) and html. You can also give a reporter class, eg |
| 49 | +# mypackage.mymodule.MyReporterClass. |
| 50 | +output-format=text |
| 51 | + |
| 52 | +# Put messages in a separate file for each module / package specified on the |
| 53 | +# command line instead of printing them on stdout. Reports (if any) will be |
| 54 | +# written to a file name "pylint_global.[txt|html]". |
| 55 | +files-output=no |
| 56 | + |
| 57 | +# Tells whether to display a full report or only the messages |
| 58 | +reports=yes |
| 59 | + |
| 60 | +# Python expression which should return a note less than 10 (10 is the highest |
| 61 | +# note). You have access to the variables errors warning, statement which |
| 62 | +# respectively contain the number of errors / warnings messages and the total |
| 63 | +# number of statements analyzed. This is used by the global evaluation report |
| 64 | +# (RP0004). |
| 65 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 66 | + |
| 67 | +[FORMAT] |
| 68 | +# Maximum number of characters on a single line. |
| 69 | +max-line-length=88 |
| 70 | + |
| 71 | +# Regexp for a line that is allowed to be longer than the limit. |
| 72 | +ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 73 | + |
| 74 | +# Allow the body of an if to be on the same line as the test if there is no else. |
| 75 | +single-line-if-stmt=no |
| 76 | + |
| 77 | +# Maximum number of lines in a module |
| 78 | +max-module-lines=1000 |
| 79 | + |
| 80 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 tab). |
| 81 | +indent-string=' ' |
| 82 | + |
| 83 | +# Number of spaces of indent required inside a hanging or continued line. |
| 84 | +indent-after-paren=4 |
0 commit comments