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:
parent
f8137b94db
commit
dccd283dd2
@ -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"
|
||||
|
@ -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__)
|
||||
|
||||
|
@ -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 w𝒊ll 𝟉ο𝘁 𝛠a𝔰ꜱ 𝘁𝒉𝝸𝚜".decode("utf-8")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user