From 148342bddae9b656f8f78f90ea24dba42dbf0ef1 Mon Sep 17 00:00:00 2001 From: "ayush.goyal" Date: Wed, 15 Sep 2021 16:16:41 +0530 Subject: [PATCH] fixing pylint issues --- apps/beeswax/src/beeswax/conf.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/apps/beeswax/src/beeswax/conf.py b/apps/beeswax/src/beeswax/conf.py index af6f271b938..6b6275230d4 100644 --- a/apps/beeswax/src/beeswax/conf.py +++ b/apps/beeswax/src/beeswax/conf.py @@ -43,14 +43,16 @@ HIVE_DISCOVERY_HS2 = Config( key="hive_discovery_hs2", - help=_t("Determines whether we pull a random HiveServer2 from the list in zookeeper. This HS2 instance is cached until hue is restarted."), + help=_t("Determines whether we pull a random HiveServer2 from the list in zookeeper. " + "This HS2 instance is cached until hue is restarted."), default="false", type=coerce_bool ) HIVE_DISCOVERY_LLAP_HA = Config( key="hive_discovery_llap_ha", - help=_t("If you have more than one HSI server, it has a different znode setup. This will trigger the code to check for the Active HSI Server"), + help=_t("If you have more than one HSI server, it has a different znode setup. " + "This will trigger the code to check for the Active HSI Server"), default="false", type=coerce_bool ) @@ -175,7 +177,9 @@ def get_hive_thrift_http_port(): key='browse_partitioned_table_limit', default=1000, type=int, - help=_t('Limit the number of partitions to list on the partitions page. A positive value will be set as the LIMIT. If 0 or negative, do not set any limit.')) + help=_t('Limit the number of partitions to list on the partitions page. A positive value will be set as the LIMIT. ' + 'If 0 or negative, do not set any limit.') + ) QUERY_PARTITIONS_LIMIT = Config( key='query_partitions_limit', @@ -238,7 +242,8 @@ def get_deprecated_download_cell_limit(): MAX_NUMBER_OF_SESSIONS = Config( key="max_number_of_sessions", help=_t("Hue will use at most this many HiveServer2 sessions per user at a time" - # The motivation for -1 is that Hue does currently keep track of session state perfectly and the user does not have ability to manage them effectively. The cost of a session is low + # The motivation for -1 is that Hue does currently keep track of session state perfectly and the user + # does not have ability to manage them effectively. The cost of a session is low "-1 is unlimited number of sessions."), type=int, default=1 @@ -262,28 +267,28 @@ def get_deprecated_download_cell_limit(): key='ssl', help=_t('SSL configuration for the server.'), members=dict( - CACERTS = Config( + CACERTS=Config( key="cacerts", help=_t("Path to Certificate Authority certificates."), type=str, dynamic_default=default_ssl_cacerts, ), - KEY = Config( + KEY=Config( key="key", help=_t("Path to the private key file, e.g. /etc/hue/key.pem"), type=str, default=None ), - CERT = Config( + CERT=Config( key="cert", help=_t("Path to the public certificate file, e.g. /etc/hue/cert.pem"), type=str, default=None ), - VALIDATE = Config( + VALIDATE=Config( key="validate", help=_t("Choose whether Hue should validate certificates received from the server."), type=coerce_bool,