From 603dec60c60d22c59565346ccbcaf564825e8422 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 02:40:09 +0000 Subject: [PATCH] Prepare release for v0.17.1 --- HISTORY.md | 15 +++++ static_code_analysis.txt | 124 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 134 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e841f6fc..0c0b48c5 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,20 @@ # History +## v0.17.1 - 2024-12-04 + +### Maintenance + +* Create Prepare Release workflow - Issue [#674](https://github.com/sdv-dev/SDMetrics/issues/674) by @amontanez24 +* Update codecov and add flag for integration tests - Issue [#644](https://github.com/sdv-dev/SDMetrics/issues/644) by @pvk-developer + +### Bugs Fixed + +* `InterRowMSAS` ignores sequences with missing values - Issue [#679](https://github.com/sdv-dev/SDMetrics/issues/679) by @fealho +* Improve error handling for datetime values when `apply_log = True` for `InterRowMSAS` - Issue [#672](https://github.com/sdv-dev/SDMetrics/issues/672) by @fealho +* Improve warning handling for non-positive values when `apply_log = True` for `InterRowMSAS` - Issue [#670](https://github.com/sdv-dev/SDMetrics/issues/670) by @fealho +* `StatisticMSAS` raises undesirable `FutureWarning` - Issue [#665](https://github.com/sdv-dev/SDMetrics/issues/665) by @fealho +* `KSComplement` can be unstable for constant float values - Issue [#652](https://github.com/sdv-dev/SDMetrics/issues/652) by @fealho + ## v0.17.0 - 2024-11-14 This release adds a number of Multi-Sequence Aggregate Similarity (MSAS) metrics! diff --git a/static_code_analysis.txt b/static_code_analysis.txt index 7b8c850d..1933be45 100644 --- a/static_code_analysis.txt +++ b/static_code_analysis.txt @@ -1,6 +1,120 @@ -Run started:2024-11-15 03:09:38.348077 +Run started:2024-12-04 02:40:08.683516 Test results: +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/multi_table/multi_single_table.py:187:8 +186 """ +187 assert cls.min_value == 0.0 +188 return super().normalize(raw_score) + +-------------------------------------------------- +>> Issue: [B403:blacklist] Consider possible security implications associated with pickle module. + Severity: Low Confidence: High + CWE: CWE-502 (https://cwe.mitre.org/data/definitions/502.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/blacklists/blacklist_imports.html#b403-import-pickle + Location: ./build/lib/sdmetrics/reports/base_report.py:4:0 +3 import importlib.metadata +4 import pickle +5 import sys + +-------------------------------------------------- +>> Issue: [B112:try_except_continue] Try, Except, Continue detected. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b112_try_except_continue.html + Location: ./build/lib/sdmetrics/reports/base_report.py:116:16 +115 real_data[column], synthetic_data[column] = converted_cols +116 except Exception: +117 continue +118 + +-------------------------------------------------- +>> Issue: [B301:blacklist] Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue. + Severity: Medium Confidence: High + CWE: CWE-502 (https://cwe.mitre.org/data/definitions/502.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/blacklists/blacklist_calls.html#b301-pickle + Location: ./build/lib/sdmetrics/reports/base_report.py:310:21 +309 with open(filepath, 'rb') as f: +310 report = pickle.load(f) +311 if current_version != report._package_version: + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/reports/multi_table/_properties/base.py:67:8 +66 +67 assert is_dataframe, assert_message +68 if not has_score_column: + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/single_table/multi_column_pairs.py:146:8 +145 """ +146 assert cls.min_value == 0.0 +147 return super().normalize(raw_score) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/single_table/multi_single_column.py:163:8 +162 """ +163 assert cls.min_value == 0.0 +164 return super().normalize(raw_score) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/single_table/privacy/loss.py:80:8 +79 """ +80 assert len(pred) == len(real) +81 + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/single_table/privacy/util.py:72:4 +71 dist = 0 +72 assert len(target) == len(test), ( +73 'Tuples must have the same length in thecalculation of hamming distance!' +74 ) +75 + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html + Location: ./build/lib/sdmetrics/timeseries/detection.py:104:8 +103 """ +104 assert cls.min_value == 0.0 +105 return super().normalize(raw_score) + +-------------------------------------------------- +>> Issue: [B110:try_except_pass] Try, Except, Pass detected. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b110_try_except_pass.html + Location: ./build/lib/sdmetrics/visualization.py:37:8 +36 +37 except Exception: +38 pass +39 + +-------------------------------------------------- >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Severity: Low Confidence: High CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) @@ -117,19 +231,19 @@ Test results: -------------------------------------------------- Code scanned: - Total lines of code: 9453 + Total lines of code: 18840 Total lines skipped (#nosec): 0 Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0 Run metrics: Total issues (by severity): Undefined: 0 - Low: 10 - Medium: 1 + Low: 20 + Medium: 2 High: 0 Total issues (by confidence): Undefined: 0 Low: 0 Medium: 0 - High: 11 + High: 22 Files skipped (0):