Created
April 2, 2014 16:51
-
-
Save sankroh/9938093 to your computer and use it in GitHub Desktop.
Pylintrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MASTER] | |
profile=no | |
persistent=yes | |
ignore=migrations | |
cache-size=500 | |
[BASIC] | |
# Regular expression which should only match correct module names | |
module-rgx=([a-z][a-z0-9_]*)$ | |
attr-rgx=[a-z_][a-z0-9_]{,30} | |
# Regular expression which should only match correct class names | |
class-rgx=[A-Z_]+[a-zA-Z0-9]+$ | |
# Regular expression which should only match correct function names | |
function-rgx=[a-z_]+[a-z0-9_][a-z0-9]*$ | |
# Regular expression which should only match correct method names | |
# Allow upper cases in testFeatureSelection where FeatureSelection | |
# is a class name | |
method-rgx=(([a-z_]|__)[a-z0-9_]*(__)?|test[a-zA-Z0-9_]*)$ | |
# Regular expression which should only match correct argument names | |
argument-rgx=[a-z][a-z0-9]*_*[a-z0-9]*_*[a-z0-9]*_?$ | |
# Regular expression which should only match correct variable names | |
variable-rgx=([a-z_]+[a-z0-9]*_*[a-z0-9]*_*[a-z0-9]*_?||(__[a-zA-Z0-9_]*__))$||[A-Z]+ | |
# Regular expression which should only match correct module level names | |
# Default: (([A-Z_][A-Z1-9_]*)|(__.*__))$ | |
# const-rgx=([a-z_]+[a-z0-9]*_*[a-z0-9]*_*[a-z0-9]*_?|__[a-zA-Z0-9_]*__)$||[A-Z]+ | |
const-rgx=(([A-Z_][A-Z0-9_]*)|([a-z_][a-z0-9_]*)|(__.*__)|register|urlpatterns)$ | |
# Regular expression that should only match correct docstrings | |
no-docstring-rgx=__.*__|_.* | |
# Don't raise warnings for these common variable and method names | |
good-names=_,i,j,k,e,qs,pk,setUp,tearDown | |
[FORMAT] | |
indent-string=' ' | |
max-line-length=160 | |
max-module-lines=500 | |
[DESIGN] | |
# We are capable to follow that many, yes! | |
max-branchs = 20 | |
# some base class constructors have quite a few arguments | |
max-args = 14 | |
# and due to ClassWithCollections and conditional attributes classes by default have lots | |
# of attributes | |
max-attributes = 14 | |
# some sci computation can't be handled efficiently without having | |
#lots of locals | |
max-locals = 35 | |
max-returns=6 | |
max-statements=50 | |
max-parents=7 | |
min-public-methods=0 | |
max-public-methods=50 | |
[MESSAGES CONTROL] | |
# Disable the following PyLint messages: | |
# R0903 - Not enough public methods | |
# W0105 - String statement has no effect # often used for after-line doc | |
# W0142 - Used * or ** magic | |
# W0232 - Class has no __init__ method | |
# W0212 - Access to a protected member ... of a client class | |
# W0613 - Unused argument | |
# E1101 - Has no member (countless false-positives) | |
# C0301 - Line is too long | |
# C0111 - Missing Docstring | |
#disable=R0903,W0142,W0105,W0212,W0613,E1101,R0201,C0103,W0142,C0301,R0914,W0402,W0403,F0401,W0222,W0611,W0221,F0010,W0614,C0111,W0212,R0911,R0903,W0232,W0622,W0703,R0913,W0613,C0324,C0322,R0901,R0902 | |
disable=R0903,W0105,W0142,W0232,W0212,W0613,E1101,C0301,C0111,E1002 | |
[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,WSGIRequest | |
# When zope mode is activated, add a predefined set of Zope acquired attributes | |
# to generated-members. | |
zope=no | |
# List of members which are set dynamically and missed by pylint inference | |
# system, and so shouldn't trigger E0201 when accessed. | |
generated-members=REQUEST,acl_users,aq_parent,objects,DoesNotExist,id,pk,_meta,base_fields,context,[a-zA-Z]+_set | |
# 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 | |
[REPORTS] | |
# set the output format. Available formats are text, parseable, colorized and | |
# html | |
output-format=colorized | |
# Include message's id in output | |
include-ids=yes | |
# Tells wether to display a full report or only the messages | |
reports=no | |
[MISCELLANEOUS] | |
# List of note tags to take in consideration, separated by a comma. | |
# FIXME -- something which needs fixing | |
# TODO -- future plan | |
# XXX -- some concern | |
# YYY -- comment/answer to above mentioned concern | |
notes=FIXME,TODO,XXX,YYY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment