From 2791311d024998aad193cf61619c34cce69e0a17 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 25 Feb 2025 21:10:33 +0000 Subject: [PATCH 1/2] Prepare release for v0.11.0 --- HISTORY.md | 14 ++++++++++++- static_code_analysis.txt | 44 +++++++++++++++------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index ee1da1fa..b88858b0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,18 @@ # History -### v0.10.2 - 2024-10-22 +### v0.11.0 - 2025-02-25 + +### New Features + +* Surface error to user during fit if training data contains null values - Issue [#414](https://github.com/sdv-dev/CTGAN/issues/414) by @rwedge + +### Maintenance + +* Combine `static_code_analysis.yml` with `release_notes.yml` - Issue [#421](https://github.com/sdv-dev/CTGAN/issues/421) by @R-Palazzo +* Support Python 3.13 - Issue [#411](https://github.com/sdv-dev/CTGAN/issues/411) by @rwedge +* Update codecov and add flag for integration tests - Issue [#410](https://github.com/sdv-dev/CTGAN/issues/410) by @pvk-developer + +## v0.10.2 - 2024-10-22 ### Bugs Fixed diff --git a/static_code_analysis.txt b/static_code_analysis.txt index f777fc28..0c7c7826 100644 --- a/static_code_analysis.txt +++ b/static_code_analysis.txt @@ -1,14 +1,14 @@ -Run started:2024-10-22 16:18:16.010383 +Run started:2025-02-25 21:10:33.223731 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: ./ctgan/__main__.py:122:8 -121 if args.sample_condition_column is not None: -122 assert args.sample_condition_column_value is not None -123 + Location: ./ctgan/__main__.py:121:8 +120 if args.sample_condition_column is not None: +121 assert args.sample_condition_column_value is not None +122 -------------------------------------------------- >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. @@ -55,20 +55,20 @@ Test results: 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: ./ctgan/synthesizers/ctgan.py:59:8 -58 """Apply the Discriminator to the `input_`.""" -59 assert input_.size()[0] % self.pac == 0 -60 return self.seq(input_.view(-1, self.pacdim)) + Location: ./ctgan/synthesizers/ctgan.py:60:8 +59 """Apply the Discriminator to the `input_`.""" +60 assert input_.size()[0] % self.pac == 0 +61 return self.seq(input_.view(-1, self.pacdim)) -------------------------------------------------- >> 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: ./ctgan/synthesizers/ctgan.py:163:8 -162 ): -163 assert batch_size % 2 == 0 -164 + Location: ./ctgan/synthesizers/ctgan.py:164:8 +163 ): +164 assert batch_size % 2 == 0 +165 -------------------------------------------------- >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. @@ -80,34 +80,22 @@ Test results: 100 assert st == recon_x.size()[1] 101 KLD = -0.5 * torch.sum(1 + logvar - mu**2 - logvar.exp()) --------------------------------------------------- ->> Issue: [B105:hardcoded_password_string] Possible hardcoded password: '# History - -' - Severity: Low Confidence: Medium - CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html) - More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b105_hardcoded_password_string.html - Location: ./scripts/release_notes_generator.py:134:12 -133 -134 token = '# History\n\n' -135 split_index = history.find(token) + len(token) + 1 - -------------------------------------------------- Code scanned: - Total lines of code: 1508 + Total lines of code: 1414 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: 9 + Low: 8 Medium: 0 High: 0 Total issues (by confidence): Undefined: 0 Low: 0 - Medium: 1 + Medium: 0 High: 8 Files skipped (0): From 7e990315856d2ba4d3d701a543d2af6285bfe5c2 Mon Sep 17 00:00:00 2001 From: Andrew Montanez Date: Tue, 25 Feb 2025 18:33:57 -0600 Subject: [PATCH 2/2] Update HISTORY.md --- HISTORY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index b88858b0..9085e6d2 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,6 @@ # History -### v0.11.0 - 2025-02-25 +### v0.11.0 - 2025-02-26 ### New Features