Skip to content

Commit 50acac0

Browse files
committed
[core] Fix py linting issues in metadata conf
1 parent e519d15 commit 50acac0

File tree

1 file changed

+17
-15
lines changed
  • desktop/libs/metadata/src/metadata

1 file changed

+17
-15
lines changed

desktop/libs/metadata/src/metadata/conf.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,19 @@ def get_optimizer_password_script():
133133
),
134134
TENANT_ID=Config(
135135
key="tenant_id",
136-
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."),
136+
help=_t("The name of the workload where queries are uploaded and optimizations are calculated from. "
137+
"Automatically guessed from auth_key and cluster_id if not specified."),
137138
private=True,
138139
default=None
139140
),
140141
CLUSTER_ID=Config(
141142
key="cluster_id",
142-
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'."),
143+
help=_t("The name of the cluster used to determine the tenant id when this one is not specified. "
144+
"Defaults to the cluster Id or 'default'."),
143145
private=True,
144146
default=DEFAULT_CLUSTER_ID.get()
145147
),
146-
APPLY_SENTRY_PERMISSIONS = Config(
148+
APPLY_SENTRY_PERMISSIONS=Config(
147149
key="apply_sentry_permissions",
148150
help=_t("Perform Sentry privilege filtering. Default to true automatically if the cluster is secure."),
149151
dynamic_default=get_security_default,
@@ -154,31 +156,31 @@ def get_optimizer_password_script():
154156
type=int,
155157
help=_t('The cache TTL in milliseconds for the assist/autocomplete/etc calls. Set to 0 to disable the cache.'),
156158
default=10 * 24 * 60 * 60 * 1000),
157-
AUTO_UPLOAD_QUERIES = Config(
159+
AUTO_UPLOAD_QUERIES=Config(
158160
key="auto_upload_queries",
159161
help=_t("Automatically upload queries after their execution in order to improve recommendations."),
160162
default=True,
161163
type=coerce_bool
162164
),
163-
AUTO_UPLOAD_DDL = Config(
165+
AUTO_UPLOAD_DDL=Config(
164166
key="auto_upload_ddl",
165167
help=_t("Automatically upload queried tables DDL in order to improve recommendations."),
166168
default=True,
167169
type=coerce_bool
168170
),
169-
AUTO_UPLOAD_STATS = Config(
171+
AUTO_UPLOAD_STATS=Config(
170172
key="auto_upload_stats",
171173
help=_t("Automatically upload queried tables and columns stats in order to improve recommendations."),
172174
default=False,
173175
type=coerce_bool
174176
),
175-
ENABLE_PREDICT = Config(
177+
ENABLE_PREDICT=Config(
176178
key="enable_predict",
177179
help=_t("Enables the predict API for editor typeahead."),
178180
default=False,
179181
type=coerce_bool
180182
),
181-
QUERY_HISTORY_UPLOAD_LIMIT = Config(
183+
QUERY_HISTORY_UPLOAD_LIMIT=Config(
182184
key="query_history_upload_limit",
183185
help=_t("Allow admins to upload the last N executed queries in the quick start wizard. Use 0 to disable."),
184186
default=10000,
@@ -212,7 +214,7 @@ def get_optimizer_password_script():
212214
help=_t('Hostname prefix to Altus WA API or compatible service.'),
213215
default='waapi.us-west-1.altus.cloudera.com'
214216
),
215-
HAS_WA = Config(
217+
HAS_WA=Config(
216218
key="has_wa",
217219
help=_t("Switch to turn on workload analytics insights."),
218220
default=True,
@@ -316,7 +318,7 @@ def get_catalog_server_password_script():
316318
help=_t("Limits found entities to a specific cluster."),
317319
default=None
318320
),
319-
FETCH_SIZE_SEARCH_INTERACTIVE = Config(
321+
FETCH_SIZE_SEARCH_INTERACTIVE=Config(
320322
key="fetch_size_search_interactive",
321323
help=_t("Max number of items to fetch in one call in object search autocomplete."),
322324
default=25,
@@ -460,30 +462,30 @@ def has_catalog_file_search(user):
460462
type=coerce_password_from_script,
461463
default=None
462464
),
463-
CONF_DIR = Config(
465+
CONF_DIR=Config(
464466
key='conf_dir',
465467
help=_t('Navigator configuration directory, where navigator.client.properties is located.'),
466468
dynamic_default=default_navigator_config_dir
467469
),
468-
APPLY_SENTRY_PERMISSIONS = Config(
470+
APPLY_SENTRY_PERMISSIONS=Config(
469471
key="apply_sentry_permissions",
470472
help=_t("Perform Sentry privilege filtering. Default to true automatically if the cluster is secure."),
471473
dynamic_default=get_security_default,
472474
type=coerce_bool
473475
),
474-
FETCH_SIZE_SEARCH = Config(
476+
FETCH_SIZE_SEARCH=Config(
475477
key="fetch_size_search",
476478
help=_t("Max number of items to fetch in one call in object search."),
477479
default=450,
478480
type=int
479481
),
480-
FETCH_SIZE_SEARCH_INTERACTIVE = Config(
482+
FETCH_SIZE_SEARCH_INTERACTIVE=Config(
481483
key="fetch_size_search_interactive",
482484
help=_t("Max number of items to fetch in one call in object search autocomplete."),
483485
default=450,
484486
type=int
485487
),
486-
ENABLE_FILE_SEARCH = Config(
488+
ENABLE_FILE_SEARCH=Config(
487489
key="enable_file_search",
488490
help=_t("Enable to search HDFS, S3 files."),
489491
type=coerce_bool,

0 commit comments

Comments
 (0)