Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Sep 6, 2024
1 parent e7055e7 commit 7b20819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ga4gh/vrs/extras/vcf_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _cli() -> None:
logging.basicConfig(
filename="vrs-python-annotate.log",
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)


Expand All @@ -62,7 +62,7 @@ def _log_level_option(func: Callable) -> Callable:
:param func: incoming click command
:return: same command, wrapped with log level option
"""
def _set_log_level(ctx: dict, param: str, value: _LogLevel) -> None:
def _set_log_level(ctx: dict, param: str, value: _LogLevel) -> None: # pylint: disable=unused-argument
level_map = {
_LogLevel.DEBUG: logging.DEBUG,
_LogLevel.INFO: logging.INFO,
Expand All @@ -73,9 +73,9 @@ def _set_log_level(ctx: dict, param: str, value: _LogLevel) -> None:
logging.getLogger(__name__).setLevel(level_map[value])

wrapped_func = click.option(
'--log_level',
"--log_level",
type=click.Choice([v.value for v in _LogLevel.__members__.values()]),
default='info',
default="info",
help="Set the logging level.",
callback=_set_log_level,
expose_value=False,
Expand Down

0 comments on commit 7b20819

Please sign in to comment.