Skip to content

Commit

Permalink
more bump to 0.9.3 and version from toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dnil committed Nov 25, 2024
1 parent 7ea3a6f commit 6e3cc1b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Repository = "https://github.com/Clinical-Genomics/stranger"
Changelog = "https://github.com/Clinical-Genomics/stranger/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/Clinical-Genomics/stranger/issues"


[project.scripts]
stranger = "stranger.cli:cli"

Expand Down
1 change: 0 additions & 1 deletion stranger/__version__.py

This file was deleted.

10 changes: 7 additions & 3 deletions stranger/cli.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import gzip

Check failure on line 1 in stranger/cli.py

View workflow job for this annotation

GitHub Actions / Lint-only (3.12)

Imports are incorrectly sorted and/or formatted.
import logging
from codecs import getreader, open
try:
from importlib.metadata import version
except ImportError:
# Try backported to piPY<37 `importlib_resources`.
from importlib_resources import version

import click
import coloredlogs

from stranger.__version__ import __version__
from stranger.constants import ANNOTATE_REPEAT_KEYS, ANNOTATE_REPEAT_KEYS_TRGT
from stranger.resources import repeats_json_path
from stranger.utils import (
Expand Down Expand Up @@ -45,12 +49,12 @@
help="Set the level of log output.",
show_default=True,
)
@click.version_option(__version__)
@click.version_option(version('stranger'))
@click.pass_context
def cli(context, vcf, family_id, repeats_file, loglevel, trgt):
"""Annotate str variants with str status"""
coloredlogs.install(level=loglevel)
LOG.info("Running stranger version %s", __version__)
LOG.info("Running stranger version %s", version('stranger'))

repeat_information = None
repeats_file_type = "tsv"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e3cc1b

Please sign in to comment.