| 1 |
[MAIN] |
| 2 |
# Modernized from the old pylintrc using the newly generated Pylint config as reference. |
| 3 |
# Keep this file focused on project-specific choices instead of generated defaults. |
| 4 |
|
| 5 |
# Auto-detect CPU count for faster runs. Change to 1 if you need deterministic single-process output. |
| 6 |
jobs=0 |
| 7 |
|
| 8 |
# Match the Python version used by this project. |
| 9 |
py-version=3.7 |
| 10 |
|
| 11 |
ignore=CVS |
| 12 |
persistent=no |
| 13 |
load-plugins= |
| 14 |
extension-pkg-allow-list= |
| 15 |
|
| 16 |
|
| 17 |
[MESSAGES CONTROL] |
| 18 |
# Project-specific disables carried over from the old pylintrc. |
| 19 |
# Prefer symbolic names over numeric IDs in modern Pylint. |
| 20 |
disable=duplicate-code, |
| 21 |
no-else-return, |
| 22 |
useless-object-inheritance, |
| 23 |
too-many-lines, |
| 24 |
fixme |
| 25 |
|
| 26 |
|
| 27 |
[REPORTS] |
| 28 |
reports=no |
| 29 |
score=yes |
| 30 |
output-format=text |
| 31 |
msg-template={path}:{line}:{column}: {msg_id}: {msg} ({symbol}) |
| 32 |
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 33 |
|
| 34 |
|
| 35 |
[BASIC] |
| 36 |
good-names=i,j,k,ex,fd,Run,_ |
| 37 |
bad-names=foo,bar,baz,toto,tutu,tata |
| 38 |
include-naming-hint=no |
| 39 |
|
| 40 |
# These regexes preserve the old project's naming rules. |
| 41 |
function-rgx=[a-z_][a-z0-9_]{2,40}$ |
| 42 |
variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 43 |
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 44 |
attr-rgx=[a-z_][a-z0-9_]{2,40}$ |
| 45 |
argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 46 |
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$ |
| 47 |
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 48 |
class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 49 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 50 |
method-rgx=[a-z_][a-z0-9_]{2,40}$ |
| 51 |
|
| 52 |
no-docstring-rgx=__.*__ |
| 53 |
docstring-min-length=-1 |
| 54 |
|
| 55 |
|
| 56 |
[FORMAT] |
| 57 |
max-line-length=100 |
| 58 |
ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 59 |
single-line-if-stmt=no |
| 60 |
max-module-lines=1000 |
| 61 |
indent-string=' ' |
| 62 |
indent-after-paren=4 |
| 63 |
expected-line-ending-format= |
| 64 |
|
| 65 |
|
| 66 |
[LOGGING] |
| 67 |
logging-modules=logging |
| 68 |
|
| 69 |
|
| 70 |
[MISCELLANEOUS] |
| 71 |
notes=FIXME,XXX,TODO |
| 72 |
|
| 73 |
|
| 74 |
[SIMILARITIES] |
| 75 |
min-similarity-lines=4 |
| 76 |
ignore-comments=yes |
| 77 |
ignore-docstrings=yes |
| 78 |
ignore-imports=no |
| 79 |
|
| 80 |
|
| 81 |
[SPELLING] |
| 82 |
spelling-dict= |
| 83 |
spelling-ignore-words= |
| 84 |
spelling-private-dict-file= |
| 85 |
spelling-store-unknown-words=no |
| 86 |
|
| 87 |
|
| 88 |
[TYPECHECK] |
| 89 |
ignore-mixin-members=yes |
| 90 |
ignored-modules= |
| 91 |
ignored-classes=SQLObject |
| 92 |
generated-members=REQUEST,acl_users,aq_parent |
| 93 |
|
| 94 |
|
| 95 |
[VARIABLES] |
| 96 |
init-import=no |
| 97 |
dummy-variables-rgx=_|_$|dummy |
| 98 |
additional-builtins= |
| 99 |
callbacks=cb_,_cb |
| 100 |
ignored-argument-names=_.* |
| 101 |
|
| 102 |
|
| 103 |
[CLASSES] |
| 104 |
defining-attr-methods=__init__,__new__,setUp |
| 105 |
valid-classmethod-first-arg=cls |
| 106 |
valid-metaclass-classmethod-first-arg=mcs |
| 107 |
exclude-protected=_asdict,_fields,_replace,_source,_make |
| 108 |
|
| 109 |
|
| 110 |
[DESIGN] |
| 111 |
max-args=10 |
| 112 |
max-locals=15 |
| 113 |
max-returns=6 |
| 114 |
max-branches=20 |
| 115 |
max-statements=50 |
| 116 |
max-parents=7 |
| 117 |
max-attributes=20 |
| 118 |
min-public-methods=0 |
| 119 |
max-public-methods=40 |
| 120 |
|
| 121 |
|
| 122 |
[IMPORTS] |
| 123 |
deprecated-modules=regsub,TERMIOS,Bastion,rexec |
| 124 |
|
| 125 |
|
| 126 |
[EXCEPTIONS] |
| 127 |
overgeneral-exceptions=builtins.Exception |