Browse Source

[core] Fix py linting issues in metadata conf

Johan Ahlen 4 years ago
parent
commit
50acac0c8c
1 changed files with 17 additions and 15 deletions
  1. 17 15
      desktop/libs/metadata/src/metadata/conf.py

+ 17 - 15
desktop/libs/metadata/src/metadata/conf.py

@@ -133,17 +133,19 @@ OPTIMIZER = ConfigSection(
     ),
     TENANT_ID=Config(
       key="tenant_id",
-      help=_t("The name of the workload where queries are uploaded and optimizations are calculated from. Automatically guessed from auth_key and cluster_id if not specified."),
+      help=_t("The name of the workload where queries are uploaded and optimizations are calculated from. "
+              "Automatically guessed from auth_key and cluster_id if not specified."),
       private=True,
       default=None
     ),
     CLUSTER_ID=Config(
       key="cluster_id",
-      help=_t("The name of the cluster used to determine the tenant id when this one is not specified. Defaults to the cluster Id or 'default'."),
+      help=_t("The name of the cluster used to determine the tenant id when this one is not specified. "
+              "Defaults to the cluster Id or 'default'."),
       private=True,
       default=DEFAULT_CLUSTER_ID.get()
     ),
-    APPLY_SENTRY_PERMISSIONS = Config(
+    APPLY_SENTRY_PERMISSIONS=Config(
       key="apply_sentry_permissions",
       help=_t("Perform Sentry privilege filtering. Default to true automatically if the cluster is secure."),
       dynamic_default=get_security_default,
@@ -154,31 +156,31 @@ OPTIMIZER = ConfigSection(
       type=int,
       help=_t('The cache TTL in milliseconds for the assist/autocomplete/etc calls. Set to 0 to disable the cache.'),
       default=10 * 24 * 60 * 60 * 1000),
-    AUTO_UPLOAD_QUERIES = Config(
+    AUTO_UPLOAD_QUERIES=Config(
       key="auto_upload_queries",
       help=_t("Automatically upload queries after their execution in order to improve recommendations."),
       default=True,
       type=coerce_bool
     ),
-    AUTO_UPLOAD_DDL = Config(
+    AUTO_UPLOAD_DDL=Config(
       key="auto_upload_ddl",
       help=_t("Automatically upload queried tables DDL in order to improve recommendations."),
       default=True,
       type=coerce_bool
     ),
-    AUTO_UPLOAD_STATS = Config(
+    AUTO_UPLOAD_STATS=Config(
       key="auto_upload_stats",
       help=_t("Automatically upload queried tables and columns stats in order to improve recommendations."),
       default=False,
       type=coerce_bool
     ),
-    ENABLE_PREDICT = Config(
+    ENABLE_PREDICT=Config(
       key="enable_predict",
       help=_t("Enables the predict API for editor typeahead."),
       default=False,
       type=coerce_bool
     ),
-    QUERY_HISTORY_UPLOAD_LIMIT = Config(
+    QUERY_HISTORY_UPLOAD_LIMIT=Config(
       key="query_history_upload_limit",
       help=_t("Allow admins to upload the last N executed queries in the quick start wizard. Use 0 to disable."),
       default=10000,
@@ -212,7 +214,7 @@ ALTUS = ConfigSection(
       help=_t('Hostname prefix to Altus WA API or compatible service.'),
       default='waapi.us-west-1.altus.cloudera.com'
     ),
-    HAS_WA = Config(
+    HAS_WA=Config(
       key="has_wa",
       help=_t("Switch to turn on workload analytics insights."),
       default=True,
@@ -316,7 +318,7 @@ CATALOG = ConfigSection(
       help=_t("Limits found entities to a specific cluster."),
       default=None
     ),
-    FETCH_SIZE_SEARCH_INTERACTIVE = Config(
+    FETCH_SIZE_SEARCH_INTERACTIVE=Config(
       key="fetch_size_search_interactive",
       help=_t("Max number of items to fetch in one call in object search autocomplete."),
       default=25,
@@ -460,30 +462,30 @@ NAVIGATOR = ConfigSection(
       type=coerce_password_from_script,
       default=None
     ),
-    CONF_DIR = Config(
+    CONF_DIR=Config(
       key='conf_dir',
       help=_t('Navigator configuration directory, where navigator.client.properties is located.'),
       dynamic_default=default_navigator_config_dir
     ),
-    APPLY_SENTRY_PERMISSIONS = Config(
+    APPLY_SENTRY_PERMISSIONS=Config(
       key="apply_sentry_permissions",
       help=_t("Perform Sentry privilege filtering. Default to true automatically if the cluster is secure."),
       dynamic_default=get_security_default,
       type=coerce_bool
     ),
-    FETCH_SIZE_SEARCH = Config(
+     FETCH_SIZE_SEARCH=Config(
       key="fetch_size_search",
       help=_t("Max number of items to fetch in one call in object search."),
       default=450,
       type=int
     ),
-    FETCH_SIZE_SEARCH_INTERACTIVE = Config(
+    FETCH_SIZE_SEARCH_INTERACTIVE=Config(
       key="fetch_size_search_interactive",
       help=_t("Max number of items to fetch in one call in object search autocomplete."),
       default=450,
       type=int
     ),
-    ENABLE_FILE_SEARCH = Config(
+    ENABLE_FILE_SEARCH=Config(
       key="enable_file_search",
       help=_t("Enable to search HDFS, S3 files."),
       type=coerce_bool,