Commit 4e2e3ca4 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint and mypy issues

parent 08032d1d
......@@ -27,7 +27,7 @@ from zoe_api.api_endpoint import APIEndpoint # pylint: disable=unused-import
log = logging.getLogger(__name__)
thread_pool = ThreadPoolExecutor(20)
THREAD_POOL = ThreadPoolExecutor(20)
class ServiceAPI(RequestHandler):
......@@ -74,7 +74,7 @@ class ServiceLogsAPI(RequestHandler):
while True:
try:
log_line = yield thread_pool.submit(next, log_gen)
log_line = yield THREAD_POOL.submit(next, log_gen)
except StopIteration:
break
......
......@@ -25,7 +25,7 @@ from zoe_lib.config import get_conf
from zoe_api.exceptions import ZoeRestAPIException, ZoeNotFoundException, ZoeAuthException, ZoeException
from zoe_api.auth.ldap import LDAPAuthenticator
from zoe_api.auth.file import PlainTextAuthenticator
from zoe_api.auth.base import BaseAuthenticator
from zoe_api.auth.base import BaseAuthenticator # pylint: disable=unused-import
log = logging.getLogger(__name__)
......
......@@ -20,7 +20,7 @@ import logging
from zoe_lib.config import get_conf
from zoe_api.auth.base import BaseAuthenticator
from zoe_api.auth.base import BaseAuthenticator # pylint: disable=unused-import
from zoe_api.auth.ldap import LDAPAuthenticator
from zoe_api.auth.file import PlainTextAuthenticator
import zoe_api.exceptions
......
......@@ -28,7 +28,7 @@ log = logging.getLogger(__name__)
class ZoeMonitor(threading.Thread):
"""The monitor."""
def __init__(self, state: SQLManager):
def __init__(self, state: SQLManager) -> None:
super().__init__()
self.setName('monitor')
self.stop = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment