|
| 1 | +[MAIN] |
| 2 | +# Analyse import fallback blocks |
| 3 | +analyse-fallback-blocks=no |
| 4 | + |
| 5 | +# Load and enable all available extensions |
| 6 | +load-plugins=pylint.extensions.docparams |
| 7 | + |
| 8 | +# Files or directories to ignore |
| 9 | +ignore=CVS,.git,__pycache__,build,dist,*.egg-info |
| 10 | + |
| 11 | +# Python version |
| 12 | +py-version=3.10 |
| 13 | + |
| 14 | +# Jobs to run in parallel (0 = auto-detect) |
| 15 | +jobs=0 |
| 16 | + |
| 17 | +[MESSAGES CONTROL] |
| 18 | +# Disable specific messages |
| 19 | +disable= |
| 20 | + C0114, # missing-module-docstring |
| 21 | + C0115, # missing-class-docstring |
| 22 | + C0116, # missing-function-docstring |
| 23 | + C0301, # line-too-long (handled by formatter) |
| 24 | + C0103, # invalid-name (allow single letter variables, non-standard names) |
| 25 | + R0801, # duplicate-code |
| 26 | + R0903, # too-few-public-methods |
| 27 | + R0913, # too-many-arguments |
| 28 | + R0914, # too-many-locals |
| 29 | + R0915, # too-many-statements |
| 30 | + R0902, # too-many-instance-attributes |
| 31 | + R0904, # too-many-public-methods |
| 32 | + R0912, # too-many-branches |
| 33 | + W0212, # protected-access (common in SQLAlchemy dialects) |
| 34 | + W0223, # abstract-method (SQLAlchemy dialect methods) |
| 35 | + W0613, # unused-argument (required by interface) |
| 36 | + W0703, # broad-except |
| 37 | + W1203, # logging-fstring-interpolation |
| 38 | + E1101, # no-member (false positives with dynamic attributes) |
| 39 | + |
| 40 | +[FORMAT] |
| 41 | +# Maximum line length |
| 42 | +max-line-length=120 |
| 43 | + |
| 44 | +# Expected indentation |
| 45 | +indent-string=' ' |
| 46 | + |
| 47 | +[BASIC] |
| 48 | +# Good variable names |
| 49 | +good-names=i,j,k,v,f,ex,db,q,kw,fn,id,pk,fk |
| 50 | + |
| 51 | +# Naming style |
| 52 | +function-naming-style=snake_case |
| 53 | +variable-naming-style=snake_case |
| 54 | +class-naming-style=PascalCase |
| 55 | +const-naming-style=UPPER_CASE |
| 56 | +module-naming-style=snake_case |
| 57 | + |
| 58 | +[DESIGN] |
| 59 | +# Maximum number of arguments for function / method |
| 60 | +max-args=10 |
| 61 | + |
| 62 | +# Maximum number of locals for function / method body |
| 63 | +max-locals=20 |
| 64 | + |
| 65 | +# Maximum number of return / yield for function / method body |
| 66 | +max-returns=6 |
| 67 | + |
| 68 | +# Maximum number of branch for function / method body |
| 69 | +max-branches=15 |
| 70 | + |
| 71 | +# Maximum number of statements in function / method body |
| 72 | +max-statements=60 |
| 73 | + |
| 74 | +# Maximum number of attributes for a class |
| 75 | +max-attributes=15 |
| 76 | + |
| 77 | +[IMPORTS] |
| 78 | +# Allow wildcard imports from these modules |
| 79 | +allow-wildcard-with-all=no |
| 80 | + |
| 81 | +# Deprecated modules |
| 82 | +deprecated-modules=optparse |
| 83 | + |
| 84 | +[LOGGING] |
| 85 | +# Logging format style |
| 86 | +logging-format-style=new |
| 87 | + |
| 88 | +[TYPECHECK] |
| 89 | +# List of members which are set dynamically |
| 90 | +generated-members= |
| 91 | + sqlalchemy.*, |
| 92 | + types.* |
| 93 | + |
| 94 | +# Ignore missing members for these classes |
| 95 | +ignored-classes= |
| 96 | + SQLObject, |
| 97 | + optparse.Values, |
| 98 | + thread._local, |
| 99 | + _thread._local |
| 100 | + |
| 101 | +[SIMILARITIES] |
| 102 | +# Minimum lines number of a similarity |
| 103 | +min-similarity-lines=6 |
| 104 | + |
| 105 | +# Ignore comments when computing similarities |
| 106 | +ignore-comments=yes |
| 107 | + |
| 108 | +# Ignore docstrings when computing similarities |
| 109 | +ignore-docstrings=yes |
| 110 | + |
| 111 | +# Ignore imports when computing similarities |
| 112 | +ignore-imports=yes |
| 113 | + |
| 114 | +# Allow DB-API 2.0 required function names |
| 115 | +function-rgx=[a-z_][a-z0-9_]{2,30}$|^(Date|Time|Timestamp|DateFromTicks|TimeFromTicks|TimestampFromTicks|Binary)$ |
0 commit comments