FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-29-2011, 05:44 PM
Chris Lumens
 
Default Disable E1103 (the "some types could not be inferred" message).

We hit this for every use of a pyanaconda.product value, so it's really just
noise.
---
tests/pylint/pylint-false-positives | 6 ------
tests/pylint/runpylint.sh | 1 +
2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/tests/pylint/pylint-false-positives b/tests/pylint/pylint-false-positives
index bde04b5..97f566c 100644
--- a/tests/pylint/pylint-false-positives
+++ b/tests/pylint/pylint-false-positives
@@ -26,12 +26,6 @@
^E1101:[ 0-9]*:.*: Instance of 'dict' has no 'Get' member$
^E1101:[ 0-9]*:FilteredCallbacks..*set: Instance of 'FilteredCallbacks' has no 'notebook' member$
^E1101:[ 0-9]*:Anaconda.backend: Instance of 'DefaultInstall' has no 'getBackend' member$
-^E1103:[ 0-9]*:.*: Instance of 'str' has no '.*' member (but some types could not be inferred)$
-^E1103:[ 0-9]*:execWithCapture: Instance of 'list' has no 'splitlines' member (but some types could not be inferred)$
-^E1103:[ 0-9]*:VncServer.connectToView: Instance of 'list' has no 'startswith' member (but some types could not be inferred)$
-^E1103:[ 0-9]*:VncServer.connectToView: Instance of 'list' has no 'endswith' member (but some types could not be inferred)$
-^E1103:[ 0-9]*:bindMountDevDirectory: Instance of 'DeviceFormat' has no 'mount' member (but some types could not be inferred)$
-^E1103:[ 0-9]*eviceTree.handleUdevDiskLabelFormat: Instance of 'DeviceFormat' has no 'partitions' member (but some types could not be inferred)$
^W0404:[ 0-9]*:runRescue: Reimport 'runPostScripts' (imported line [0-9]*)$
# Note this will become a real issue when we start supporting multiple netdevs
^W0631:[ 0-9]*:Network.write: Using possibly undefined loop variable 'dev'$
diff --git a/tests/pylint/runpylint.sh b/tests/pylint/runpylint.sh
index cdd5fc4..721a122 100755
--- a/tests/pylint/runpylint.sh
+++ b/tests/pylint/runpylint.sh
@@ -54,6 +54,7 @@ for i in pyanaconda/storage pyanaconda/installclasses/*.py pyanaconda/iw/*.py py
--disable=W0511,W0403,W0703,W0622,W0614,W0401,W0142, W0613,W0621,W0141
--disable=W0102,W0201,W0221,W0702,W0602,W0603,W0604, W1001,W0223
--disable=W0231,W0232,W0233,W0404
+ --disable=E1103
$NON_STRICT_OPTIONS $i |
egrep -v "`cat $FALSE_POSITIVES | tr '
' '|'`" > pylint-tmp-log
if grep -q -v '************* Module ' pylint-tmp-log; then
--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:50 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org