From 748c3d81fa74ffcb54241cdb556ca5397d60cfca Mon Sep 17 00:00:00 2001 From: Florian Huber <36473328+florian-huber@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:44:05 +0100 Subject: [PATCH 1/3] Update SonarQube scan action version in CI workflow --- .github/workflows/CI_build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI_build.yml b/.github/workflows/CI_build.yml index b92fb9b..697cbb5 100644 --- a/.github/workflows/CI_build.yml +++ b/.github/workflows/CI_build.yml @@ -38,12 +38,12 @@ jobs: - name: Check whether import statements are used consistently shell: bash -l {0} run: poetry run isort --check-only --diff --conda-env spec2vec-dev . -# - name: SonarQube Scan -# if: github.repository == 'iomega/spec2vec' -# uses: SonarSource/sonarqube-scan-action@master -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: SonarQube Scan + if: github.repository == 'iomega/spec2vec' + uses: SonarSource/sonarqube-scan-action@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build_pypi: name: Pypi and documentation build / python-${{ matrix.python-version }} / ${{ matrix.os }} From 862570878655076605bfa47ef85c99106aa95873 Mon Sep 17 00:00:00 2001 From: Florian Huber <36473328+florian-huber@users.noreply.github.com> Date: Fri, 7 Nov 2025 09:02:49 +0100 Subject: [PATCH 2/3] Bump version from 0.9.0 to 0.9.1 --- conda/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index a7d2e82..b60c770 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,5 +1,5 @@ {% set name = "spec2vec" %} -{% set version = "0.9.0" %} +{% set version = "0.9.1" %} package: name: {{ name|lower }} From d381ecd19940468f1bf3db820aadd78644fa3e6e Mon Sep 17 00:00:00 2001 From: Florian Huber <36473328+florian-huber@users.noreply.github.com> Date: Fri, 7 Nov 2025 09:11:07 +0100 Subject: [PATCH 3/3] Remove unnecessary assignment Removed unnecessary type annotation for _obj. --- spec2vec/SpectrumDocument.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spec2vec/SpectrumDocument.py b/spec2vec/SpectrumDocument.py index 66ba46b..f63d4ce 100644 --- a/spec2vec/SpectrumDocument.py +++ b/spec2vec/SpectrumDocument.py @@ -54,7 +54,6 @@ def __init__(self, spectrum: Spectrum, n_decimals: int = 2): self.weights = None super().__init__(obj=spectrum) self._add_weights() - self._obj: Spectrum = self._obj def _make_words(self) -> list[str]: """Create word from peaks (and losses)."""