From 0d9b454ae0528aee936dbe4fb3b9e609f6d38a47 Mon Sep 17 00:00:00 2001 From: "penify-dev[bot]" <146478655+penify-dev[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 20:45:48 +0000 Subject: [PATCH] [Penify]: Documentation for azure_devops.py --- src/azure_devops.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/azure_devops.py b/src/azure_devops.py index ffb06d0..1a1f446 100644 --- a/src/azure_devops.py +++ b/src/azure_devops.py @@ -82,6 +82,16 @@ async def check_documentation_generation_status(headers, data): async def main(): + """ Validate the required environment variables and initiate documentation generation. + + This function validates the required environment variables and initiates the documentation generation process. + If any of the required environment variables are missing, it raises a ValueError and notifies the user. + + + Raises: + ValueError: If any of the required environment variables are missing. + """ + required_env_vars = [ "PAT_TOKEN", "SNORKELL_API_KEY",