From 714e5705d33e8ab340bfa6b1113e5ab02ffe5ec0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:12:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- heimdallr/entry_points/cli.py | 4 ++-- heimdallr/entry_points/publisher.py | 4 ++-- heimdallr/server/board_layout/body.py | 26 +++++++++++----------- heimdallr/server/board_layout/header.py | 6 ++--- heimdallr/utilities/nvidia/smi_parsing.py | 12 +++++----- heimdallr/utilities/server/du_utilities.py | 8 +++---- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/heimdallr/entry_points/cli.py b/heimdallr/entry_points/cli.py index 2ed6216..fc8afdc 100644 --- a/heimdallr/entry_points/cli.py +++ b/heimdallr/entry_points/cli.py @@ -15,8 +15,8 @@ import fire import warg from heimdallr.configuration.heimdallr_settings import ( - HeimdallrSettings, - SettingScopeEnum, + HeimdallrSettings, + SettingScopeEnum, ) from pyfiglet import Figlet from sorcery import assigned_names diff --git a/heimdallr/entry_points/publisher.py b/heimdallr/entry_points/publisher.py index f2d7b86..7a4ad7c 100644 --- a/heimdallr/entry_points/publisher.py +++ b/heimdallr/entry_points/publisher.py @@ -17,8 +17,8 @@ from draugr.writers import LogWriter, MockWriter, Writer from heimdallr.configuration.heimdallr_config import ALL_CONSTANTS from heimdallr.configuration.heimdallr_settings import ( - HeimdallrSettings, - SettingScopeEnum, + HeimdallrSettings, + SettingScopeEnum, ) from heimdallr.utilities.publisher.unpacking import pull_disk_usage_info, pull_gpu_info from warg import NOD diff --git a/heimdallr/server/board_layout/body.py b/heimdallr/server/board_layout/body.py index 0a206a2..54fb6bc 100644 --- a/heimdallr/server/board_layout/body.py +++ b/heimdallr/server/board_layout/body.py @@ -13,19 +13,19 @@ from dash import dcc, html from heimdallr.configuration.heimdallr_config import ( - CALENDAR_ID, - CALENDAR_INTERVAL_ID, - CALENDAR_INTERVAL_MS, - DU_INTERVAL_ID, - DU_INTERVAL_MS, - DU_TABLES_ID, - GPU_GRAPHS_ID, - GPU_INTERVAL_ID, - GPU_INTERVAL_MS, - GPU_TABLES_ID, - TEAMS_STATUS_ID, - TEAMS_STATUS_INTERVAL_ID, - TEAMS_STATUS_INTERVAL_MS, + CALENDAR_ID, + CALENDAR_INTERVAL_ID, + CALENDAR_INTERVAL_MS, + DU_INTERVAL_ID, + DU_INTERVAL_MS, + DU_TABLES_ID, + GPU_GRAPHS_ID, + GPU_INTERVAL_ID, + GPU_INTERVAL_MS, + GPU_TABLES_ID, + TEAMS_STATUS_ID, + TEAMS_STATUS_INTERVAL_ID, + TEAMS_STATUS_INTERVAL_MS, ) diff --git a/heimdallr/server/board_layout/header.py b/heimdallr/server/board_layout/header.py index f34a485..c479a3e 100644 --- a/heimdallr/server/board_layout/header.py +++ b/heimdallr/server/board_layout/header.py @@ -12,9 +12,9 @@ from dash import dcc, html from heimdallr.configuration.heimdallr_config import ( - HTML_TITLE, - TIME_ID, - TIME_INTERVAL_ID, + HTML_TITLE, + TIME_ID, + TIME_INTERVAL_ID, ) import heimdallr diff --git a/heimdallr/utilities/nvidia/smi_parsing.py b/heimdallr/utilities/nvidia/smi_parsing.py index 1d7a922..b0329c4 100644 --- a/heimdallr/utilities/nvidia/smi_parsing.py +++ b/heimdallr/utilities/nvidia/smi_parsing.py @@ -2827,9 +2827,9 @@ def DeviceQuery(self, filter=None): or NVSMI_CLOCK_THROTTLE_REASONS_SW_THERMAL_SLOWDOWN in filter or NVSMI_CLOCK_THROTTLE_REASONS_SYNC_BOOST in filter ): - gpuResults[ - "clocks_throttle" - ] = NvidiaSMI.__GetClocksThrottleReasons(handle) + gpuResults["clocks_throttle"] = ( + NvidiaSMI.__GetClocksThrottleReasons(handle) + ) fbMemoryUsage = {} includeMemoryUsage = False @@ -3268,9 +3268,9 @@ def DeviceQuery(self, filter=None): except NVMLError as err: supportedGraphicsClocks = NvidiaSMI.__handleError(err) - supportMemClock[ - "supported_graphics_clock" - ] = supportedGraphicsClocks + supportMemClock["supported_graphics_clock"] = ( + supportedGraphicsClocks + ) supportedClocks.append(supportMemClock) # jj+=1 diff --git a/heimdallr/utilities/server/du_utilities.py b/heimdallr/utilities/server/du_utilities.py index d027571..bc278c3 100644 --- a/heimdallr/utilities/server/du_utilities.py +++ b/heimdallr/utilities/server/du_utilities.py @@ -12,10 +12,10 @@ import numpy import pandas from heimdallr.configuration.heimdallr_config import ( - DROP_COLUMNS, - INT_COLUMNS, - MB_COLUMNS, - PERCENT_COLUMNS, + DROP_COLUMNS, + INT_COLUMNS, + MB_COLUMNS, + PERCENT_COLUMNS, ) from heimdallr.utilities.date_tools import timestamp_to_datetime from pandas import DataFrame