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 }} 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 }} 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)."""