From 66715e36ac1ced314a413bf40d51206672175acd Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 21 May 2024 08:47:24 +0000 Subject: [PATCH 1/2] fix: requirements/requirements_dev.txt to reduce vulnerabilities The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-REQUESTS-6928867 --- requirements/requirements_dev.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements/requirements_dev.txt b/requirements/requirements_dev.txt index b3122de..d4326ad 100644 --- a/requirements/requirements_dev.txt +++ b/requirements/requirements_dev.txt @@ -18,4 +18,5 @@ pre-commit #-r requirements_linux.txt -r ../requirements.txt -setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file +setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability +requests>=2.32.0 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file From 61335479b599e3838d2477f1acf534ff71766cf1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 08:47:33 +0000 Subject: [PATCH 2/2] [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/server/du_utilities.py | 8 +++---- 5 files changed, 24 insertions(+), 24 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/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