Disable pylint errors with Flask and gevent

pylint has trouble with Flask response objects, thinking they are tuples
and returning no-member errors. It also doesn't recognize gevent.socket
members like AF_UNIX.
This commit is contained in:
Brian C. Lane 2018-12-12 11:07:53 -08:00 committed by Alexander Todorov
parent f8137b94db
commit dccd283dd2
3 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,9 @@ from pylorax.api.recipes import open_or_create_repo, commit_recipe_directory
from pylorax.api.server import server, GitLock
from pylorax.api.yumbase import YumLock
# pylint has trouble with gevent's socket module, doesn't recognize some of its members
# pylint: disable=no-member
VERSION = "{0}-{1}".format(os.path.basename(sys.argv[0]), vernum)
DEFAULT_USER = "root"

View File

@ -20,6 +20,8 @@ from datetime import timedelta
from pylorax.api.crossdomain import crossdomain
# pylint has trouble with Flask's server client response objects, thinks they are tuples
# pylint: disable=no-member
server = Flask(__name__)

View File

@ -36,6 +36,9 @@ from pylorax.api.server import server, GitLock
from pylorax.api.yumbase import YumLock
from pylorax.sysutils import joinpaths
# pylint has trouble with Flask's server client response objects, thinks they are tuples
# pylint: disable=no-member
# Used for testing UTF-8 input support
UTF8_TEST_STRING = "I 𝒊ll 𝟉ο𝘁 𝛠𝔰 𝘁𝒉𝝸𝚜".decode("utf-8")