From df6ec83985acb993abbdfb111acfce8b898b5160 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Thu, 8 Dec 2022 14:35:44 -0500 Subject: [PATCH 1/3] feat: fix jetbrains mishandling service info environment and augment with bento git props --- bento_lib/types.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bento_lib/types.py b/bento_lib/types.py index 48863aa..fe5a12b 100644 --- a/bento_lib/types.py +++ b/bento_lib/types.py @@ -34,4 +34,8 @@ class GA4GHServiceInfo(_GA4GHServiceInfoBase, total=False): contactUrl: str documentationUrl: str url: str # Technically not part of spec; comes from service-registry - environment: Union[Literal["dev"], Literal["prod"]] + environment: str # TODO: Literal["dev", "prod"] if JetBrains fixes their inspection... + + # TODO: put these in their own Bento object? + git_tag: str + git_branch: str From 1ee57bd2a43c14b4593474c88e8dc5eea1351684 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Thu, 8 Dec 2022 14:35:56 -0500 Subject: [PATCH 2/3] chore: bump version to 5.0.2 --- bento_lib/package.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_lib/package.cfg b/bento_lib/package.cfg index 21340ae..5da7ba7 100644 --- a/bento_lib/package.cfg +++ b/bento_lib/package.cfg @@ -1,5 +1,5 @@ [package] name = bento_lib -version = 5.0.1 +version = 5.0.2 authors = David Lougheed, Paul Pillot author_emails = david.lougheed@mail.mcgill.ca, paul.pillot@computationalgenomics.ca From dc0395414243017a34d78d1276510931a989beaf Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Thu, 8 Dec 2022 15:05:35 -0500 Subject: [PATCH 3/3] lint --- bento_lib/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_lib/types.py b/bento_lib/types.py index fe5a12b..b86e1d9 100644 --- a/bento_lib/types.py +++ b/bento_lib/types.py @@ -1,4 +1,4 @@ -from typing import Literal, TypedDict, Union +from typing import TypedDict __all__ = [ "GA4GHServiceType",