Skip to content

Commit

Permalink
Type hints and f string
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Oct 27, 2023
1 parent 9ba218f commit 3f20116
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion loqusdb/commands/identity.py
Expand Up @@ -22,7 +22,7 @@ def identity(ctx, variant_id):

variant_count: int = adapter.db.identity.count_documents({"variant_id": variant_id})
if variant_count == 0:
LOG.info("No hits for variant %s", variant_id)
LOG.info(f"No hits for variant {variant_id}")
return

for res in result:
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/test_export.py
Expand Up @@ -2,7 +2,7 @@

from loqusdb.commands.cli import cli as base_command

def test_export_base(real_db_name):
def test_export_base(real_db_name:str):
"""Test the base command that exports variants."""

runner = CliRunner()
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/test_identity.py
Expand Up @@ -2,7 +2,7 @@

from loqusdb.commands.cli import cli as base_command

def test_identity(real_db_name):
def test_identity(real_db_name:str):
"""Test the SV identity base command."""

runner = CliRunner()
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/test_view.py
@@ -1,8 +1,8 @@
from click.testing import CliRunner

from loqusdb.plugins.mongo.adapter import MongoAdapter
from loqusdb.commands.cli import cli as base_command

def test_view_cases_base(real_mongo_adapter, real_db_name):
def test_view_cases_base(real_mongo_adapter, real_db_name:str):
"""Test the base command that returns database cases."""

## GIVEN an empty database
Expand Down

0 comments on commit 3f20116

Please sign in to comment.