From b70176e3e753ab15e40bacc4da985e1bf727db6c Mon Sep 17 00:00:00 2001 From: Brian Wylie Date: Sat, 7 Dec 2024 21:21:14 -0700 Subject: [PATCH] flake8/linter cleanup --- applications/aws_dashboard/pages/endpoints/callbacks.py | 2 +- applications/aws_dashboard/pages/models/page.py | 1 - examples/plugins/pages/plugin_page_2.py | 6 +----- examples/plugins/pages/plugin_page_3.py | 6 +----- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/applications/aws_dashboard/pages/endpoints/callbacks.py b/applications/aws_dashboard/pages/endpoints/callbacks.py index 16b9d886f..3efdc29ba 100644 --- a/applications/aws_dashboard/pages/endpoints/callbacks.py +++ b/applications/aws_dashboard/pages/endpoints/callbacks.py @@ -1,7 +1,7 @@ """Callbacks for the Endpoints Subpage Web User Interface""" import logging -from dash import callback, no_update, Input, Output, State +from dash import callback, no_update, Input, Output from dash.exceptions import PreventUpdate # SageWorks Imports diff --git a/applications/aws_dashboard/pages/models/page.py b/applications/aws_dashboard/pages/models/page.py index 7508ef88e..2506be962 100644 --- a/applications/aws_dashboard/pages/models/page.py +++ b/applications/aws_dashboard/pages/models/page.py @@ -1,7 +1,6 @@ """Models: A SageWorks Web Interface to view, and interact with Models""" from dash import register_page -import dash # Local Imports from .layout import models_layout diff --git a/examples/plugins/pages/plugin_page_2.py b/examples/plugins/pages/plugin_page_2.py index 6056d1bf4..eea95f5e8 100644 --- a/examples/plugins/pages/plugin_page_2.py +++ b/examples/plugins/pages/plugin_page_2.py @@ -64,11 +64,7 @@ def page_layout(self) -> dash.html.Div: # Create the Dash app my_app = dash.Dash( - __name__, - title="SageWorks Dashboard", - use_pages=True, - external_stylesheets=css_files, - pages_folder="" + __name__, title="SageWorks Dashboard", use_pages=True, external_stylesheets=css_files, pages_folder="" ) my_app.layout = html.Div( [ diff --git a/examples/plugins/pages/plugin_page_3.py b/examples/plugins/pages/plugin_page_3.py index 691bce36d..fb5a37f0a 100644 --- a/examples/plugins/pages/plugin_page_3.py +++ b/examples/plugins/pages/plugin_page_3.py @@ -140,11 +140,7 @@ def update_all_plugin_properties(inference_run, selected_rows): # Create the Dash app my_app = dash.Dash( - __name__, - title="SageWorks Dashboard", - use_pages=True, - external_stylesheets=css_files, - pages_folder="" + __name__, title="SageWorks Dashboard", use_pages=True, external_stylesheets=css_files, pages_folder="" ) my_app.layout = html.Div( [