Browse Source

fixing pylint issues

ayush.goyal 4 years ago
parent
commit
538d88ff35

+ 9 - 3
apps/beeswax/src/beeswax/urls.py

@@ -70,7 +70,9 @@ urlpatterns += [
   re_path(r'^api/autocomplete/?$', beeswax_api.autocomplete, name='api_autocomplete_databases'),
   re_path(r'^api/autocomplete/(?P<database>\w+)/?$', beeswax_api.autocomplete, name='api_autocomplete_tables'),
   re_path(r'^api/autocomplete/(?P<database>\w+)/(?P<table>\w+)/?$', beeswax_api.autocomplete, name='api_autocomplete_columns'),
-  re_path(r'^api/autocomplete/(?P<database>\w+)/(?P<table>\w+)/(?P<column>\w+)/?$', beeswax_api.autocomplete, name='api_autocomplete_column'),
+  re_path(
+    r'^api/autocomplete/(?P<database>\w+)/(?P<table>\w+)/(?P<column>\w+)/?$', beeswax_api.autocomplete, name='api_autocomplete_column'
+  ),
   re_path(
     r'^api/autocomplete/(?P<database>\w+)/(?P<table>\w+)/(?P<column>\w+)/(?P<nested>.+)/?$',
     beeswax_api.autocomplete,
@@ -107,8 +109,12 @@ urlpatterns += [
   re_path(r'^api/table/(?P<database>\w+)/(?P<table>\w+)/?$', beeswax_api.describe_table, name='describe_table'),
   re_path(r'^api/table/(?P<database>\w+)/(?P<table>\w+)/indexes/?$', beeswax_api.get_indexes, name='get_indexes'),
   re_path(r'^api/table/(?P<database>\w+)/(?P<table>\w+)/sample/?$', beeswax_api.get_sample_data, name='get_sample_data'),
-  re_path(r'^api/table/(?P<database>\w+)/(?P<table>\w+)/(?P<column>\w+)/sample/?$', beeswax_api.get_sample_data, name='get_sample_data_column'),
-  re_path(r'^api/table/(?P<database>\w+)/(?P<table>\w+)/stats(?:/(?P<column>\w+))?/?$', beeswax_api.get_table_stats, name='get_table_stats'),
+  re_path(
+    r'^api/table/(?P<database>\w+)/(?P<table>\w+)/(?P<column>\w+)/sample/?$', beeswax_api.get_sample_data, name='get_sample_data_column'
+  ),
+  re_path(
+    r'^api/table/(?P<database>\w+)/(?P<table>\w+)/stats(?:/(?P<column>\w+))?/?$', beeswax_api.get_table_stats, name='get_table_stats'
+  ),
   re_path(
     r'^api/table/(?P<database>\w+)/(?P<table>\w+)/terms/(?P<column>\w+)(?:/(?P<prefix>\w+))?/?$',
     beeswax_api.get_top_terms,

+ 6 - 2
apps/jobbrowser/src/jobbrowser/urls.py

@@ -34,7 +34,9 @@ urlpatterns = [
   re_path(r'^jobs/(?P<job>\w+)/kill$', jobbrowser_views.kill_job, name='kill_job'),
   re_path(r'^jobs/(?P<job>\w+)/single_logs$', jobbrowser_views.job_single_logs, name='jobbrowser.views.job_single_logs'),
   re_path(r'^jobs/(?P<job>\w+)/tasks$', jobbrowser_views.tasks, name='jobbrowser.views.tasks'),
-  re_path(r'^jobs/(?P<job>\w+)/tasks/(?P<taskid>\w+)$', jobbrowser_views.single_task, name='jobbrowser.views.single_task'), # TODO s/single// ?
+  re_path(
+    r'^jobs/(?P<job>\w+)/tasks/(?P<taskid>\w+)$', jobbrowser_views.single_task, name='jobbrowser.views.single_task'
+  ),                                                                                                                 # TODO s/single// ?
   re_path(r'^jobs/(?P<job>\w+)/tasks/(?P<taskid>\w+)/attempts/(?P<attemptid>\w+)$',
   jobbrowser_views.single_task_attempt, name='single_task_attempt'),
   re_path(r'^jobs/(?P<job>\w+)/tasks/(?P<taskid>\w+)/attempts/(?P<attemptid>\w+)/counters$',
@@ -43,7 +45,9 @@ urlpatterns = [
   jobbrowser_views.single_task_attempt_logs, name='single_task_attempt_logs'),
   re_path(r'^jobs/(\w+)/tasks/(\w+)/attempts/(?P<attemptid>\w+)/kill$', jobbrowser_views.kill_task_attempt, name='kill_task_attempt'),
   re_path(r'^trackers/(?P<trackerid>.+)$', jobbrowser_views.single_tracker, name='single_tracker'),
-  re_path(r'^container/(?P<node_manager_http_address>.+)/(?P<containerid>.+)$', jobbrowser_views.container, name='jobbrowser.views.container'),
+  re_path(
+    r'^container/(?P<node_manager_http_address>.+)/(?P<containerid>.+)$', jobbrowser_views.container, name='jobbrowser.views.container'
+  ),
 
   # MR2 specific
   re_path(r'^jobs/(?P<job>\w+)/job_attempt_logs/(?P<attempt_index>\d+)$', jobbrowser_views.job_attempt_logs, name='job_attempt_logs'),

+ 6 - 2
apps/oozie/src/oozie/urls.py

@@ -73,7 +73,9 @@ urlpatterns = [
   re_path(r'^clone_bundle/(?P<bundle>\d+)$', oozie_views_editor.clone_bundle, name='clone_bundle'),
   re_path(r'^delete_bundle$', oozie_views_editor.delete_bundle, name='delete_bundle'),
   re_path(r'^restore_bundle$', oozie_views_editor.restore_bundle, name='restore_bundle'),
-  re_path(r'^create_bundled_coordinator/(?P<bundle>\d+)$', oozie_views_editor.create_bundled_coordinator, name='create_bundled_coordinator'),
+  re_path(
+    r'^create_bundled_coordinator/(?P<bundle>\d+)$', oozie_views_editor.create_bundled_coordinator, name='create_bundled_coordinator'
+  ),
   re_path(
     r'^edit_bundled_coordinator/(?P<bundle>\d+)/(?P<bundled_coordinator>\d+)$',
     oozie_views_editor.edit_bundled_coordinator,
@@ -165,7 +167,9 @@ urlpatterns += [
     oozie_views_dashboard.rerun_oozie_coordinator,
     name='rerun_oozie_coord'
   ),
-  re_path(r'^rerun_oozie_bundle/(?P<job_id>[-\w]+)/(?P<app_path>.+?)$', oozie_views_dashboard.rerun_oozie_bundle, name='rerun_oozie_bundle'),
+  re_path(
+    r'^rerun_oozie_bundle/(?P<job_id>[-\w]+)/(?P<app_path>.+?)$', oozie_views_dashboard.rerun_oozie_bundle, name='rerun_oozie_bundle'
+  ),
   re_path(r'^sync_coord_workflow/(?P<job_id>[-\w]+)$', oozie_views_dashboard.sync_coord_workflow, name='sync_coord_workflow'),
   re_path(
     r'^manage_oozie_jobs/(?P<job_id>[-\w]+)/(?P<action>(start|suspend|resume|kill|rerun|change|ignore))$',

+ 3 - 1
apps/rdbms/src/rdbms/urls.py

@@ -40,7 +40,9 @@ urlpatterns += [
   re_path(r'^api/servers/?$', rdbms_api.servers, name='api_servers'),
   re_path(r'^api/servers/(?P<server>\w+)/databases/?$', rdbms_api.databases, name='api_databases'),
   re_path(r'^api/servers/(?P<server>\w+)/databases/(?P<database>.+?)/tables/?$', rdbms_api.tables, name='api_tables'),
-  re_path(r'^api/servers/(?P<server>\w+)/databases/(?P<database>.+?)/tables/(?P<table>\w+)/columns/?$', rdbms_api.columns, name='api_columns'),
+  re_path(
+    r'^api/servers/(?P<server>\w+)/databases/(?P<database>.+?)/tables/(?P<table>\w+)/columns/?$', rdbms_api.columns, name='api_columns'
+  ),
   re_path(r'^api/query(?:/(?P<design_id>\d+))?/?$', rdbms_api.save_query, name='api_save_query'),
   re_path(r'^api/query/(?P<design_id>\d+)/get$', rdbms_api.fetch_saved_query, name='api_fetch_saved_query'),
   re_path(r'^api/execute(?:/(?P<design_id>\d+))?/?$', rdbms_api.execute_query, name='api_execute_query'),

+ 3 - 1
apps/security/src/security/urls.py

@@ -50,7 +50,9 @@ urlpatterns += [
   re_path(r'^api/hive/fetch_hive_path', security_api_hive.fetch_hive_path, name='fetch_hive_path'),
 
   re_path(r'^api/hive/list_sentry_roles_by_group', security_api_hive.list_sentry_roles_by_group, name='list_sentry_roles_by_group'),
-  re_path(r'^api/hive/list_sentry_privileges_by_role', security_api_hive.list_sentry_privileges_by_role, name='list_sentry_privileges_by_role'),
+  re_path(
+    r'^api/hive/list_sentry_privileges_by_role', security_api_hive.list_sentry_privileges_by_role, name='list_sentry_privileges_by_role'
+  ),
   re_path(
     r'^api/hive/list_sentry_privileges_for_provider$',
     security_api_hive.list_sentry_privileges_for_provider,

+ 3 - 1
apps/sqoop/src/sqoop/urls.py

@@ -32,7 +32,9 @@ urlpatterns = [
 urlpatterns += [
   re_path(r'^api/autocomplete/databases/?$', sqoop_api.autocomplete, name='autocomplete_databases'),
   re_path(r'^api/autocomplete/databases/(?P<database>.+)/tables/?$', sqoop_api.autocomplete, name='autocomplete_tables'),
-  re_path(r'^api/autocomplete/databases/(?P<database>.+)/tables/(?P<table>.+)/columns/?$', sqoop_api.autocomplete, name='autocomplete_fields'),
+  re_path(
+    r'^api/autocomplete/databases/(?P<database>.+)/tables/(?P<table>.+)/columns/?$', sqoop_api.autocomplete, name='autocomplete_fields'
+  ),
   re_path(r'^api/driver/?$', sqoop_api.driver, name='driver'),
   re_path(r'^api/connectors', sqoop_api.connectors, name='connectors'),
   re_path(r'^api/connectors/(?P<connector_id>\d+)/?$', sqoop_api.connector, name='connector'),

+ 3 - 1
desktop/libs/metadata/src/metadata/urls.py

@@ -65,7 +65,9 @@ urlpatterns += [
   re_path(r'^api/navigator/list_tags/?$', metadata_catalog_api.list_tags, name='list_tags'),
   re_path(r'^api/navigator/suggest/?$', metadata_catalog_api.suggest, name='suggest'),
   re_path(r'^api/navigator/update_properties/?$', metadata_catalog_api.update_properties, name='update_properties'),
-  re_path(r'^api/navigator/delete_metadata_properties/?$', metadata_catalog_api.delete_metadata_properties, name='delete_metadata_properties'),
+  re_path(
+    r'^api/navigator/delete_metadata_properties/?$', metadata_catalog_api.delete_metadata_properties, name='delete_metadata_properties'
+  ),
   re_path(r'^api/navigator/lineage/?$', metadata_catalog_api.get_lineage, name='get_lineage'),
 ]
 

+ 6 - 2
desktop/libs/notebook/src/notebook/urls.py

@@ -110,7 +110,9 @@ urlpatterns += [
     notebook_api.autocomplete,
     name='api_autocomplete_column'
   ),
-  re_path(r'^api/sample/(?P<server>[\w_\-/]+)/(?P<database>[^/?]*)/(?P<table>\w+)/?$', notebook_api.get_sample_data, name='api_sample_data'),
+  re_path(
+    r'^api/sample/(?P<server>[\w_\-/]+)/(?P<database>[^/?]*)/(?P<table>\w+)/?$', notebook_api.get_sample_data, name='api_sample_data'
+  ),
   re_path(
     r'^api/sample/(?P<server>[\w_\-/]+)/(?P<database>[^/?]*)/(?P<table>\w+)/(?P<column>\w+)/?$',
     notebook_api.get_sample_data,
@@ -122,5 +124,7 @@ urlpatterns += [
 urlpatterns += [
   re_path(r'^api/describe/(?P<database>[^/]*)/?$', notebook_api.describe, name='api_describe_database'),
   re_path(r'^api/describe/(?P<database>[^/]*)/(?P<table>[\w_\-]+)/?$', notebook_api.describe, name='api_describe_table'),
-  re_path(r'^api/describe/(?P<database>[^/]*)/(?P<table>\w+)/stats(?:/(?P<column>\w+))?/?$', notebook_api.describe, name='api_describe_column'),
+  re_path(
+    r'^api/describe/(?P<database>[^/]*)/(?P<table>\w+)/stats(?:/(?P<column>\w+))?/?$', notebook_api.describe, name='api_describe_column'
+  ),
 ]