From 14b66b4ba69cdec45b9930a14c1bb19dae00e07f Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 30 May 2013 08:04:30 -0700 Subject: [PATCH] Make pylint ignore nova/objects/ The dynamic nature of our object model is going to cause lots of heartache for pylint, especially in the actual definitions. This just excludes that whole directory from pylint's view, which will limit the heartache to only everywhere objects are actually used. Related to blueprint unified-object-model Change-Id: I7f1a4b10b8a5098aab2ab2e8ea5da15ec43f0e2e --- tools/lintstack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lintstack.py b/tools/lintstack.py index 5c4fb0a3a4e4..cda5f0b3d323 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -34,7 +34,9 @@ ignore_messages = ["An attribute affected in nova.tests"] # Note(maoy): we ignore all errors in openstack.common because it should be # checked elsewhere. We also ignore nova.tests for now due to high false # positive rate. -ignore_modules = ["nova/openstack/common/", "nova/tests/"] +# Note(danms): we ignore all errors in nova.objects because the false +# positive rate should be very high. +ignore_modules = ["nova/openstack/common/", "nova/tests/", "nova/objects/"] KNOWN_PYLINT_EXCEPTIONS_FILE = "tools/pylint_exceptions"