66 lines
1.6 KiB
INI
66 lines
1.6 KiB
INI
[MAIN]
|
|
persistent=yes
|
|
ignore=migrations,manage.py
|
|
load-plugins=pylint_django
|
|
django-settings-module=app.settings
|
|
|
|
[REPORTS]
|
|
msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
|
|
|
|
[BASIC]
|
|
no-docstring-rgx=__.*__|_.*
|
|
class-rgx=[A-Z_][a-zA-Z0-9_]+$
|
|
function-rgx=[a-zA_][a-zA-Z0-9_]{2,70}$
|
|
method-rgx=[a-z_][a-zA-Z0-9_]{2,70}$
|
|
const-rgx=(([A-Z_][A-Z0-9_]*)|([a-z_][a-z0-9_]*)|(__.*__)|register|urlpatterns)$
|
|
good-names=_,i,j,k,v,e,qs,pk,setUp,tearDown
|
|
variable-rgx=[a-z_][a-z0-9_]{1,40}$
|
|
argument-rgx=[a-z_][a-z0-9_]{1,30}$
|
|
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
|
bad-names=foo,bar,baz
|
|
|
|
[TYPECHECK]
|
|
|
|
# Tells whether missing members accessed in mixin class should be ignored. A
|
|
# mixin class is detected if its name ends with "mixin" (case insensitive).
|
|
ignore-mixin-members=yes
|
|
|
|
# List of classes names for which member attributes should not be checked
|
|
# (useful for classes with attributes dynamically set).
|
|
ignored-classes=SQLObject
|
|
|
|
# List of members which are set dynamically and missed by pylint inference
|
|
# system, and so shouldn't trigger E0201 when accessed.
|
|
generated-members=objects,DoesNotExist,id,pk,_meta,base_fields,context
|
|
|
|
# List of method names used to declare (i.e. assign) instance attributes
|
|
defining-attr-methods=__init__,__new__,setUp
|
|
|
|
[VARIABLES]
|
|
init-import=no
|
|
dummy-variables-rgx=_|dummy
|
|
|
|
[SIMILARITIES]
|
|
min-similarity-lines=6
|
|
ignore-comments=yes
|
|
ignore-docstrings=yes
|
|
|
|
[MISCELLANEOUS]
|
|
notes=FIXME,XXX,TODO
|
|
|
|
[FORMAT]
|
|
max-line-length=121
|
|
max-module-lines=1000
|
|
indent-string=' '
|
|
|
|
[DESIGN]
|
|
max-args=10
|
|
max-locals=15
|
|
max-returns=6
|
|
max-branches=12
|
|
max-statements=50
|
|
max-parents=15
|
|
max-attributes=10
|
|
min-public-methods=0
|
|
max-public-methods=50
|