Skip to content

Commit

Permalink
ruff fix imports order
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Dec 14, 2023
1 parent 68cae76 commit b645894
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/nplinker/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
from nplinker.pairedomics.downloader import PODPDownloader
from nplinker.pairedomics.runbigscape import run_bigscape
from nplinker.pairedomics.strain_mappings_generator import podp_generate_strain_mappings
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.strain_loader import load_user_strains
from nplinker.strain import Strain


try:
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/load_gnps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from nplinker.metabolomics import Spectrum
from nplinker.metabolomics.gnps import GNPSFormat
from nplinker.metabolomics.gnps import gnps_format_from_file_mapping
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection


logger = LogConfig.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/molecular_family.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
from typing import TYPE_CHECKING
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/spectrum.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from nplinker.utils import sqrt_normalise


Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/pairedomics/strain_mappings_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from nplinker.metabolomics.gnps import GNPSFileMappingLoader
from nplinker.schemas import GENOME_BGC_MAPPINGS_SCHEMA
from nplinker.schemas import validate_podp_json
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from .podp_antismash_downloader import GenomeStatus
from .podp_antismash_downloader import get_best_available_genome_id

Expand Down
2 changes: 1 addition & 1 deletion src/nplinker/scoring/linking/data_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@


if TYPE_CHECKING:
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection

logger = LogConfig.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from nplinker.globals import STRAIN_MAPPINGS_FILENAME
from nplinker.metabolomics import Spectrum
from nplinker.metabolomics.metabolomics import load_spectra
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from . import DATA_DIR
from . import GNPS_DATA_DIR

Expand Down
2 changes: 1 addition & 1 deletion tests/genomics/test_gcf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
from nplinker.genomics import BGC
from nplinker.genomics import GCF
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion tests/genomics/test_genomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from nplinker.genomics import map_bgc_to_gcf
from nplinker.genomics import map_strain_to_bgc
from nplinker.globals import GENOME_BGC_MAPPINGS_FILENAME
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from .. import DATA_DIR


Expand Down
2 changes: 1 addition & 1 deletion tests/pairedomics/test_strain_mappings_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from nplinker.pairedomics import get_mappings_strain_id_bgc_id
from nplinker.pairedomics import get_mappings_strain_id_spectrum_id
from nplinker.pairedomics import podp_generate_strain_mappings
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection


def test_podp_generate_strain_mappings(monkeypatch, tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/scoring/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from nplinker.scoring import MetcalfScoring
from nplinker.scoring.linking import DataLinks
from nplinker.scoring.linking import LinkFinder
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection
from .. import DATA_DIR


Expand Down
2 changes: 1 addition & 1 deletion tests/test_strain_collection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import pytest
from nplinker.strain_collection import StrainCollection
from nplinker.strain import Strain
from nplinker.strain_collection import StrainCollection


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/test_strain_loader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import pytest
from nplinker.strain_loader import load_user_strains
from nplinker.strain import Strain
from nplinker.strain_loader import load_user_strains


@pytest.fixture
Expand Down

0 comments on commit b645894

Please sign in to comment.