|
| 1 | +[MAIN] |
| 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 | +# Files or directories to be skipped. They should be base names, not |
| 11 | +# paths. |
| 12 | +ignore= |
| 13 | + __pycache__, |
| 14 | + .venv |
| 15 | + |
| 16 | +# Pickle collected data for later comparisons. |
| 17 | +persistent=yes |
| 18 | + |
| 19 | +# List of plugins (as comma separated values of python modules names) to load, |
| 20 | +# usually to register additional checkers. |
| 21 | +load-plugins= |
| 22 | + pylint.extensions.check_elif, |
| 23 | + pylint.extensions.bad_builtin, |
| 24 | + pylint.extensions.docparams, |
| 25 | + pylint.extensions.for_any_all, |
| 26 | + pylint.extensions.set_membership, |
| 27 | + pylint.extensions.code_style, |
| 28 | + pylint.extensions.overlapping_exceptions, |
| 29 | + pylint.extensions.typing, |
| 30 | + pylint.extensions.redefined_variable_type, |
| 31 | + pylint.extensions.comparison_placement, |
| 32 | + pylint.extensions.mccabe, |
| 33 | + |
| 34 | +# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the |
| 35 | +# number of processors available to use. |
| 36 | +jobs=5 |
| 37 | + |
| 38 | +# When enabled, pylint would attempt to guess common misconfiguration and emit |
| 39 | +# user-friendly hints instead of false-positive error messages. |
| 40 | +suggestion-mode=yes |
| 41 | + |
| 42 | +# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 43 | +# active Python interpreter and may run arbitrary code. |
| 44 | +unsafe-load-any-extension=no |
| 45 | + |
| 46 | +# A comma-separated list of package or module names from where C extensions may |
| 47 | +# be loaded. Extensions are loading into the active Python interpreter and may |
| 48 | +# run arbitrary code |
| 49 | +extension-pkg-allow-list= |
| 50 | + |
| 51 | +# Minimum supported python version |
| 52 | +py-version = 3.10 |
| 53 | + |
| 54 | +# Specify a score threshold to be exceeded before program exits with error. |
| 55 | +fail-under=9.0 |
| 56 | + |
| 57 | +# Return non-zero exit code if any of these messages/categories are detected, |
| 58 | +# even if score is above --fail-under value. Syntax same as enable. Messages |
| 59 | +# specified are enabled, while categories only check already-enabled messages. |
| 60 | +fail-on= |
| 61 | + |
| 62 | + |
| 63 | +[MESSAGES CONTROL] |
| 64 | + |
| 65 | +# Only show warnings with the listed confidence levels. Leave empty to show |
| 66 | +# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 67 | +# confidence= |
| 68 | + |
| 69 | +# Disable the message, report, category or checker with the given id(s). You |
| 70 | +# can either give multiple identifiers separated by comma (,) or put this |
| 71 | +# option multiple times (only on the command line, not in the configuration |
| 72 | +# file where it should appear only once).You can also use "--disable=all" to |
| 73 | +# disable everything first and then re-enable specific checks. For example, if |
| 74 | +# you want to run only the similarities checker, you can use "--disable=all |
| 75 | +# --enable=similarities". If you want to run only the classes checker, but have |
| 76 | +# no Warning level messages displayed, use"--disable=all --enable=classes |
| 77 | +# --disable=W" |
| 78 | + |
| 79 | +disable= |
| 80 | + too-few-public-methods, |
| 81 | + arguments-differ, |
| 82 | + import-error, |
| 83 | + too-many-locals |
| 84 | + |
| 85 | +[REPORTS] |
| 86 | + |
| 87 | +# Set the output format. Available formats are text, parseable, colorized, msvs |
| 88 | +# (visual studio) and html. You can also give a reporter class, eg |
| 89 | +# mypackage.mymodule.MyReporterClass. |
| 90 | +output-format=text |
| 91 | + |
| 92 | +# Tells whether to display a full report or only the messages |
| 93 | +reports=no |
| 94 | + |
| 95 | +# Python expression which should return a note less than 10 (10 is the highest |
| 96 | +# note). You have access to the variables 'fatal', 'error', 'warning', 'refactor', 'convention' |
| 97 | +# and 'info', which contain the number of messages in each category, as |
| 98 | +# well as 'statement', which is the total number of statements analyzed. This |
| 99 | +# score is used by the global evaluation report (RP0004). |
| 100 | +evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)) |
| 101 | + |
| 102 | +# Template used to display messages. This is a python new-style format string |
| 103 | +# used to format the message information. See doc for all details |
| 104 | +#msg-template= |
| 105 | + |
| 106 | +# Activate the evaluation score. |
| 107 | +score=yes |
| 108 | + |
| 109 | + |
| 110 | +[LOGGING] |
| 111 | + |
| 112 | +# Logging modules to check that the string format arguments are in logging |
| 113 | +# function parameter format |
| 114 | +logging-modules=logging |
| 115 | + |
| 116 | +# The type of string formatting that logging methods do. `old` means using % |
| 117 | +# formatting, `new` is for `{}` formatting. |
| 118 | +logging-format-style=old |
| 119 | + |
| 120 | + |
| 121 | +[MISCELLANEOUS] |
| 122 | + |
| 123 | +# List of note tags to take in consideration, separated by a comma. |
| 124 | +notes=FIXME,XXX,TODO |
| 125 | + |
| 126 | +# Regular expression of note tags to take in consideration. |
| 127 | +#notes-rgx= |
| 128 | + |
| 129 | + |
| 130 | +[SIMILARITIES] |
| 131 | + |
| 132 | +# Ignore comments when computing similarities. |
| 133 | +ignore-comments=yes |
| 134 | + |
| 135 | +# Ignore docstrings when computing similarities. |
| 136 | +ignore-docstrings=yes |
| 137 | + |
| 138 | +# Ignore imports when computing similarities. |
| 139 | +ignore-imports=yes |
| 140 | + |
| 141 | +# Signatures are removed from the similarity computation |
| 142 | +ignore-signatures=yes |
| 143 | + |
| 144 | + |
| 145 | +[VARIABLES] |
| 146 | + |
| 147 | +# Tells whether we should check for unused import in __init__ files. |
| 148 | +init-import=no |
| 149 | + |
| 150 | + |
| 151 | +[FORMAT] |
| 152 | + |
| 153 | +# Maximum number of characters on a single line. |
| 154 | +max-line-length=100 |
| 155 | + |
| 156 | +# Regexp for a line that is allowed to be longer than the limit. |
| 157 | +ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
0 commit comments