Skip to content

Commit 45274f4

Browse files
Merge pull request #103 from iomega/new_sonarqube_token
Update SonarQube CI, conda version string and unnecessary assignment
2 parents 9eaefa3 + d381ecd commit 45274f4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/CI_build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
- name: Check whether import statements are used consistently
3939
shell: bash -l {0}
4040
run: poetry run isort --check-only --diff --conda-env spec2vec-dev .
41-
# - name: SonarQube Scan
42-
# if: github.repository == 'iomega/spec2vec'
43-
# uses: SonarSource/sonarqube-scan-action@master
44-
# env:
45-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41+
- name: SonarQube Scan
42+
if: github.repository == 'iomega/spec2vec'
43+
uses: SonarSource/sonarqube-scan-action@v6
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4747

4848
build_pypi:
4949
name: Pypi and documentation build / python-${{ matrix.python-version }} / ${{ matrix.os }}

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "spec2vec" %}
2-
{% set version = "0.9.0" %}
2+
{% set version = "0.9.1" %}
33

44
package:
55
name: {{ name|lower }}

spec2vec/SpectrumDocument.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def __init__(self, spectrum: Spectrum, n_decimals: int = 2):
5454
self.weights = None
5555
super().__init__(obj=spectrum)
5656
self._add_weights()
57-
self._obj: Spectrum = self._obj
5857

5958
def _make_words(self) -> list[str]:
6059
"""Create word from peaks (and losses)."""

0 commit comments

Comments
 (0)