[yum-commits] Makefile test/yum-utils-pylintrc

Tim Lauridsen timlau at osuosl.org
Tue Mar 31 10:23:16 UTC 2009


 Makefile                |    3 +++
 test/yum-utils-pylintrc |   18 +++++++++++++-----
 2 files changed, 16 insertions(+), 5 deletions(-)

New commits:
commit 9cac15a6ce2a192d95dab00134975fd5b3ca1ac5
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Tue Mar 31 12:23:08 2009 +0200

    use same pylint profile as yum and added 'pylint-short' Makefile target

diff --git a/Makefile b/Makefile
index 7ae6710..038f05b 100644
--- a/Makefile
+++ b/Makefile
@@ -89,4 +89,7 @@ ChangeLog: FORCE
 pylint:
 	@pylint --rcfile=test/yum-utils-pylintrc $(PY_FILES)
 	
+pylint-short:
+	@pylint -r n --rcfile=test/yum-utils-pylintrc $(PY_FILES)
+
 FORCE:	
diff --git a/test/yum-utils-pylintrc b/test/yum-utils-pylintrc
index f790db8..f7aee50 100644
--- a/test/yum-utils-pylintrc
+++ b/test/yum-utils-pylintrc
@@ -74,7 +74,15 @@ disable-msg-cat=C,R
 # W0231: *__init__ method from base class %r is not called*
 # E0202: *An attribute inherited from %s hide this method*
 # W0622: *Redefining built-in %r*
-disable-msg=E1101,F0401,W0704,W0612,W0212,W0613,W0602,W0511,W0401,W0614,W0232,W0201,W0603,W0621,W0142,W0102,W0105,W0702,W0231,E0202,W0622
+# W0403: *Relative import %r*
+# W0223: *Method %r is abstract in class %r but is not overridden*
+# W0104: *Statement seems to have no effect*
+# W1001: *Use of "property" on an old style class*
+# W0221: *Arguments number differs from %s method*
+# W0703: *Catch "Exception"*
+# W1010: *Exception doesn't inherit from standard "Exception" class* (give false positives on ex. KeyboardInterrupt)
+# W0631: *Using possibly undefined loop variable %r* (Gives to many false positives)
+disable-msg=E1101,F0401,W0704,W0612,W0212,W0613,W0602,W0511,W0401,W0614,W0232,W0201,W0603,W0621,W0142,W0102,W0105,W0702,W0231,E0202,W0622,W0403,W0223,W0104,W1001,W0221,W0703,W1010,W0631
 
 
 [REPORTS]
@@ -84,7 +92,7 @@ disable-msg=E1101,F0401,W0704,W0612,W0212,W0613,W0602,W0511,W0401,W0614,W0232,W0
 output-format=text
 
 # Include message's id in output
-include-ids=no
+include-ids=yes
 
 # Put messages in a separate file for each module / package specified on the
 # command line instead of printing them on stdout. Reports (if any) will be
@@ -166,7 +174,7 @@ good-names=i,j,k,ex,Run,_,n,e,r,v,a,po,f,m,u,h,l
 bad-names=foo,bar,baz,toto,tutu,tata
 
 # List of builtins function names that should not be used, separated by a comma
-bad-functions=apply,input
+bad-functions=input
 
 
 # checks for
@@ -198,7 +206,7 @@ ignore-mixin-members=yes
 
 # List of classes names for which member attributes should not be checked
 # (useful for classes with attributes dynamicaly set).
-ignored-classes=SQLObject
+ignored-classes=SQLObject,NullTranslations
 
 # When zope mode is activated, consider the acquired-members option to ignore
 # access to some undefined attributes.
@@ -245,7 +253,7 @@ int-import-graph=
 
 # List of interface methods to ignore, separated by a comma. This is used for
 # instance to not check methods defines in Zope's Interface base class.
-ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
+ignore-iface-methods=interrupt_callback
 
 # List of method names used to declare (i.e. assign) instance attributes.
 defining-attr-methods=__init__,__new__,setUp


More information about the Yum-commits mailing list