omelette added; disable more pylint messages.
svn path=/plone.app.discussion/trunk/; revision=39288
This commit is contained in:
parent
435040e0b2
commit
42cad90262
@ -5,6 +5,7 @@ extends =
|
|||||||
package-name = plone.app.discussion
|
package-name = plone.app.discussion
|
||||||
|
|
||||||
parts +=
|
parts +=
|
||||||
|
omelette
|
||||||
test
|
test
|
||||||
coverage-test
|
coverage-test
|
||||||
coverage-report
|
coverage-report
|
||||||
@ -18,6 +19,11 @@ zope.schema = 3.6.0
|
|||||||
Sphinx = 0.6.4
|
Sphinx = 0.6.4
|
||||||
Products.TinyMCE = 1.1.1
|
Products.TinyMCE = 1.1.1
|
||||||
|
|
||||||
|
[omelette]
|
||||||
|
recipe = collective.recipe.omelette
|
||||||
|
eggs = ${instance:eggs}
|
||||||
|
packages = ${instance:location}/lib/python ./
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
recipe = collective.xmltestreport
|
recipe = collective.xmltestreport
|
||||||
eggs = ${buildout:package-name}
|
eggs = ${buildout:package-name}
|
||||||
@ -52,6 +58,26 @@ eggs = logilab.pylintinstaller
|
|||||||
extra-paths = ${instance:location}/lib/python
|
extra-paths = ${instance:location}/lib/python
|
||||||
entry-points = pylint=pylint.lint:Run
|
entry-points = pylint=pylint.lint:Run
|
||||||
arguments = sys.argv[1:]
|
arguments = sys.argv[1:]
|
||||||
|
arguments = [
|
||||||
|
'--output-format=parseable',
|
||||||
|
'--zope=y',
|
||||||
|
'--reports=y',
|
||||||
|
'--disable-msg=E0611,F0401,W0232,E1101,C0103,C0111,R0201,W0201,R0911,E1102,E1121,R0904,F0220,E1103,R0901',
|
||||||
|
'--generated-members=objects',
|
||||||
|
] + sys.argv[1:]
|
||||||
|
|
||||||
|
# Disable messages:
|
||||||
|
#
|
||||||
|
# E0611: No name %r in module %r. Used when a name cannot be found in a module.
|
||||||
|
# F0401: Unable to import %r (%s). Used when pylint has been unable to import a module.
|
||||||
|
# W0232: Class has no __init__ method. Used when a class has no __init__ method, neither its parent classes.
|
||||||
|
# C0103: Invalid name "%s" (should match %s). Used when the name doesn't match the regular expression associated to its type (constant, variable, class...).
|
||||||
|
# C0111: Message Missing docstring Description Used when a module, function, class or method has no docstring. Some special methods like init don't necessary require a docstring. Explanation…
|
||||||
|
# R0201: Method could be a function
|
||||||
|
# W0201: Attribute %r defined outside __init__
|
||||||
|
# R0911: Too many return statements (%s/%s)
|
||||||
|
# ...
|
||||||
|
# See http://pylint-messages.wikidot.com/all-messages for a full list.
|
||||||
|
|
||||||
[pylint-test]
|
[pylint-test]
|
||||||
recipe = collective.recipe.template
|
recipe = collective.recipe.template
|
||||||
@ -59,7 +85,7 @@ input = inline:
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
rm pylint.out
|
rm pylint.out
|
||||||
echo "Running pylint"
|
echo "Running pylint"
|
||||||
find -L plone/app/discussion/ -regex ".*\.[c]?py" | xargs bin/pylint --output-format=parseable --zope=y --reports=n >> pylint.out
|
find -L plone/app/discussion/ -regex ".*\.[c]?py" | xargs bin/pylint >> pylint.out
|
||||||
echo "finish"
|
echo "finish"
|
||||||
output = ${buildout:directory}/bin/pylint-test
|
output = ${buildout:directory}/bin/pylint-test
|
||||||
mode = 755
|
mode = 755
|
||||||
|
Loading…
Reference in New Issue
Block a user