diff --git a/tools/lintstack.py b/tools/lintstack.py index 22e267f6511..d8459ff0e30 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -32,11 +32,16 @@ ignore_codes = ["E1103"] # for cinder.tests modules # Note(fengqian): the second error message is the pattern of [E0611]. # It should be ignored because use six module to keep py3.X compatibility. -# Note(e0ne): the third error messege is for SQLAlchemy update() calls +# Note(e0ne): the third error message is for SQLAlchemy update() calls # in DB schema migrations. +# Note(xyang): the fourth and fifth error messages are for the code [E1101]. +# They should be ignored because 'sha256' and 'sha224' are functions in +# 'hashlib'. ignore_messages = ["An attribute affected in cinder.tests", "No name 'urllib' in module '_MovedItems'", - "No value passed for parameter 'dml'"] + "No value passed for parameter 'dml'", + "Module 'hashlib' has no 'sha256' member", + "Module 'hashlib' has no 'sha224' member"] # Note(maoy): we ignore all errors in openstack.common because it should be # checked elsewhere. We also ignore cinder.tests for now due to high false # positive rate.