From d32026ca113cd84de2b52a6998c739d7d1f40c0a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 24 May 2024 10:48:45 +0000 Subject: [PATCH 1/2] fix: requirements.txt to reduce vulnerabilities The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-REQUESTS-6928867 - https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-6035177 - https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-6808933 --- requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3108714..652bd28 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,6 @@ schedule sorcery setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability dash -plotly \ No newline at end of file +plotly +requests>=2.32.0 # not directly required, pinned by Snyk to avoid a vulnerability +werkzeug>=3.0.3 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file From a1f1b08c0b58677eb77a3c9bf841043b7b189e9c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 10:48:55 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- heimdallr/utilities/nvidia/smi_parsing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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