addons-server/scripts/pylintrc

50 строки
1.7 KiB
INI

[MASTER]
ignore=migrations,settings_local.py,sphinxapi.py,test_buttons.py
[REPORTS]
output_format=parseable
[MESSAGES CONTROL]
# :C0111: *Missing docstring*
# This is far too noisy, ideally we should ignore it in specific places
# but pylint isn't very good at letting us specify certain rules for certain
# files
# :C0103: *Invalid name "%s" (should match %s)*
# This is rather annoying in some contexts.
# :W0403: *Relative import %r, should be %r*
# We don't know where zamboni is going to be running, so relative imports
# are necessary for now.
# :W0142: *Used * or ** magic*
# This isn't harry potter... there's no such thing as magic.
# :W0232: *Class has no __init__ method*
# :E1101: *%s %r has no %r member*
# This is too often wrong to be useful.
# :R0201: Method could be a function
# Useful, but there's a number of places where we use methods
# since we're extending Django classes that require specific
# methods.
# :W0402: String is actually still useful
# :W0141: *Used builtin function %r*
# Used when a black listed builtin function is used (see the bad-function
# option). Usual black listed functions are the ones like map, or filter,
# where Python offers now some cleaner alternative like list comprehension.
# :W0212: *Access to a protected member %s of a client class*
# Used when a protected member (i.e. class member with a name beginning
# with an underscore) is access outside the class or a descendant of the
# class where it's defined.
# :W0201: Attribute %r defined outside __init__
disable-msg=C0111,C0103,W0403,W0142,W0232,E1101,R0201,W0402,W0141,W0212,W0201
[DESIGN]
max-args=6
max-public-methods=45
min-public-methods=0
[REPORTS]
output-format=parseable
include-ids=yes