Skip to content

Commit 8453185

Browse files
committed
linting
1 parent b823573 commit 8453185

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ms2query/database/spectra_merging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import List, Dict, Tuple, Optional
22
import sqlite3
33
import json
4-
import io
54
from collections import Counter
65
import numpy as np
76
from matchms import Spectrum

tests/test_fingerprint_computation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_dense_count_weights_requires_count_true():
9292

9393
def test_dense_weights_shape_validation():
9494
fpgen = FakeFPGen(dense_count_fp=[1, 1, 1, 1])
95-
gen = FingerprintGenerator(fpgen)
95+
_ = FingerprintGenerator(fpgen)
9696
# wrong length
9797
# TODO: check/fix:
9898
# with pytest.raises(ValueError):

tests/test_spectral_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55
from matchms import Spectrum
66

7-
from ms2query.spectral_database import SpectralDatabase
7+
from ms2query.database.spectral_database import SpectralDatabase
88

99

1010
@pytest.fixture
@@ -129,7 +129,7 @@ def test_get_metadata_by_ids_df(tmp_db, spectra_small):
129129

130130

131131
def test_sql_query_simple(tmp_db, spectra_small):
132-
ids = tmp_db.add_spectrum(spectra_small)
132+
_ = tmp_db.add_spectrum(spectra_small)
133133
df = tmp_db.sql_query("SELECT COUNT(*) AS n FROM spectra")
134134
assert df.iloc[0]["n"] == 3
135135
# Query some metadata back

0 commit comments

Comments
 (0)