-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suppress userwarning in windows-latest & py3.12
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/credsweeper/ml_model/ml_validator.py b/credsweeper/ml_model/ml_validator.py | ||
index 589a4bb6..a3cab6fd 100644 | ||
--- a/credsweeper/ml_model/ml_validator.py | ||
+++ b/credsweeper/ml_model/ml_validator.py | ||
@@ -3,7 +3,9 @@ import logging | ||
import string | ||
from pathlib import Path | ||
from typing import List, Tuple, Union, Optional, Dict | ||
+import warnings | ||
|
||
+warnings.filterwarnings("ignore", message="Unsupported Windows version (2022server). ONNX Runtime supports Windows 10 and above, only.", module="onnxruntime.capi.onnxruntime_validation") | ||
import numpy as np | ||
import onnxruntime as ort | ||
|