Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
iQuxLE committed Sep 20, 2024
1 parent cd1e971 commit b071835
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 25 deletions.
1 change: 1 addition & 0 deletions tests/agents/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from curate_gpt.wrappers.ontology import ONTOLOGY_MODEL_PATH
from tests import INPUT_DBS


# TODO: this has to be reviewed, isolate more, dont use one db for multiple tests
# - the current setup does not allow reset
# - set collection is v vulnerable, easier setting/creating new col for each test
Expand Down
3 changes: 1 addition & 2 deletions tests/wrappers/test_bioportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

import pytest

from curate_gpt import ChromaDBAdapter
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.ontology.bioportal_wrapper import BioportalWrapper
from curate_gpt.wrappers.ontology.ontology_wrapper import OntologyWrapper
from tests import OUTPUT_DIR
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_OAKVIEW_DB = OUTPUT_DIR / "bioportal_tmp"

Expand Down
6 changes: 1 addition & 5 deletions tests/wrappers/test_clinvar.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import logging
import os
import shutil
import tempfile
import time

import pytest
import requests
import yaml

from curate_gpt import ChromaDBAdapter
from curate_gpt.agents.chat_agent import ChatAgent
from curate_gpt.agents.dragon_agent import DragonAgent
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.clinical.clinvar_wrapper import ClinVarWrapper
from tests import INPUT_DIR, OUTPUT_DIR
from tests.store.conftest import requires_openai_api_key
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_DB = OUTPUT_DIR / "obj_tmp"

Expand Down
3 changes: 1 addition & 2 deletions tests/wrappers/test_evidence_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers import BaseWrapper
from curate_gpt.wrappers.literature import PubmedWrapper, WikipediaWrapper

from tests import OUTPUT_DIR
from tests.store.conftest import requires_openai_api_key
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_PUBMED_DB = OUTPUT_DIR / "pmid_tmp"

Expand Down
4 changes: 0 additions & 4 deletions tests/wrappers/test_ncbi_biosample.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import logging
import os
import shutil
import tempfile
import time

import yaml

from curate_gpt import ChromaDBAdapter
from curate_gpt.agents.chat_agent import ChatAgent
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.investigation.ncbi_biosample_wrapper import NCBIBiosampleWrapper
Expand Down
2 changes: 1 addition & 1 deletion tests/wrappers/test_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from curate_gpt.wrappers.ontology.ontology_wrapper import OntologyWrapper
from tests import INPUT_DIR, OUTPUT_DIR
from tests.store.conftest import requires_openai_api_key
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_OAK_OBJ = OUTPUT_DIR / "oak_tmp_obj"
TEMP_OAK_IND = OUTPUT_DIR / "oak_tmp_ind"
Expand Down
4 changes: 1 addition & 3 deletions tests/wrappers/test_pmc.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import logging
import shutil
import time

import pytest
import yaml

from curate_gpt import ChromaDBAdapter
from curate_gpt.agents.chat_agent import ChatAgent
from curate_gpt.agents.dragon_agent import DragonAgent
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.literature.pmc_wrapper import PMCWrapper
from tests import INPUT_DIR, OUTPUT_DIR
from tests.utils.helper import create_db_dir, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir

TEMP_PMC_SEARCH = OUTPUT_DIR / "pmc_search"
TEMP_PMC_CHAT = OUTPUT_DIR / "pmc_chat"
Expand Down
7 changes: 2 additions & 5 deletions tests/wrappers/test_pubmed.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import logging
import os
import shutil
import tempfile
import time

import pytest
from curate_gpt import ChromaDBAdapter

from curate_gpt.agents.chat_agent import ChatAgent
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.literature import PubmedWrapper
from tests import OUTPUT_DIR
from tests.store.conftest import requires_openai_api_key
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_PUBMED_SEARCH = OUTPUT_DIR / "pmid_tmp"
TEMP_PUBMED_CHAT = OUTPUT_DIR / "pmid_tmp"
Expand Down
4 changes: 1 addition & 3 deletions tests/wrappers/test_wikipedia.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import logging
import shutil
import time

import pytest
import yaml

from curate_gpt import ChromaDBAdapter
from curate_gpt.extract import BasicExtractor
from curate_gpt.wrappers.literature import WikipediaWrapper
from tests import OUTPUT_DIR
from tests.store.conftest import requires_openai_api_key
from tests.utils.helper import create_db_dir, setup_db, DEBUG_MODE
from tests.utils.helper import DEBUG_MODE, create_db_dir, setup_db

TEMP_Wikipedia_DB = OUTPUT_DIR / "wp_tmp"

Expand Down

0 comments on commit b071835

Please sign in to comment.