diff --git a/src/actions.py b/src/actions.py index 7f2d2b7..526f441 100644 --- a/src/actions.py +++ b/src/actions.py @@ -2,7 +2,7 @@ from typing import Literal -def env(name:str, _def=''): +def env(name: str, _def=''): """ Returns environment variable """ return os.environ.get( name, @@ -10,11 +10,11 @@ def env(name:str, _def=''): ) -# BUG: Previous step annotations are being overwritten +# -BUG: Previous step annotations are being overwritten def set_annotation( - message:str, - title:str='', - _type:Literal['debug', 'notice', 'warning', 'error']='notice', + message: str, + title: str='', + _type: Literal['debug', 'notice', 'warning', 'error']='notice', ): """ Sets annotation with `message` text @@ -27,7 +27,7 @@ def set_annotation( exit(1) -def set_output(key:str, value:str): +def set_output(key: str, value: str): """ Sets the output to `$GITHUB_OUTPUT` file - Using `key=value` """ diff --git a/src/mods.py b/src/mods.py index 02caf3e..96892ce 100644 --- a/src/mods.py +++ b/src/mods.py @@ -1,4 +1,5 @@ from actions import * +from typing import List @@ -57,8 +58,8 @@ ] # Distinguish provided options -> into supported & unsupported options -supported_options :list[str] = [] -unsupported_options :list[str] = [] +supported_options: List[str] = [] +unsupported_options: List[str] = [] for option in providedOptions: option_key = option.split()[0] if bool(option_key in pyOptions_keys and specExt == '.py') or \ @@ -93,7 +94,7 @@ ) -def get_option_value(option:str): +def get_option_value(option: str): """ Returns: Value of `option` from provided options """ for i in supported_options: iList = i.split(maxsplit=1)