From 6dedd8c3bd0f1fd1c72a678fb5b9004a42199d64 Mon Sep 17 00:00:00 2001 From: "penify-dev[bot]" <146478655+penify-dev[bot]@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:50:12 +0000 Subject: [PATCH 1/2] [Penify]: Documentation for commit - 4863478 --- penify_hook/commands/doc_commands.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/penify_hook/commands/doc_commands.py b/penify_hook/commands/doc_commands.py index e39f9bb..20b7885 100644 --- a/penify_hook/commands/doc_commands.py +++ b/penify_hook/commands/doc_commands.py @@ -122,19 +122,17 @@ def setup_docgen_parser(parser): default=os.getcwd()) def handle_docgen(args): - """Handle various subcommands related to document generation and hook - management. - - This function processes different subcommands such as installing or - uninstalling git hooks, and directly generating documentation based on - provided arguments. + # Only import dependencies needed for docgen functionality here + """Handle various subcommands related to document generation and hook management. + + This function processes different subcommands such as installing or uninstalling git hooks, and directly generating + documentation based on provided arguments. It handles authentication by retrieving a token and performs actions based on + the specified subcommand. + Args: - args (Namespace): Parsed command-line arguments containing the subcommand and location - details. + args (Namespace): Parsed command-line arguments containing the subcommand and location details. """ - - # Only import dependencies needed for docgen functionality here from penify_hook.commands.config_commands import get_token import sys from penify_hook.commands.doc_commands import generate_doc From d7ab6e7e8a4e931e86f1ac25766744203201559d Mon Sep 17 00:00:00 2001 From: "penify-dev[bot]" <146478655+penify-dev[bot]@users.noreply.github.com> Date: Wed, 30 Apr 2025 14:50:13 +0000 Subject: [PATCH 2/2] [Penify]: Documentation for commit - 4863478 --- penify_hook/main.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/penify_hook/main.py b/penify_hook/main.py index 35c332b..815e3d7 100644 --- a/penify_hook/main.py +++ b/penify_hook/main.py @@ -4,19 +4,16 @@ def main(): - """Main function to handle command-line interface (CLI) interactions with - Penify services. - - This tool provides a command-line interface for generating smart commit - messages, configuring local-LLM and JIRA, and generating code - documentation. It supports basic commands that do not require login and - advanced commands that require user authentication. The `--version` flag - can be used to display the version information. + """Main function to handle command-line interface (CLI) interactions with Penify services. + + This tool provides a command-line interface for generating smart commit messages, configuring local-LLM and JIRA, and + generating code documentation. It supports basic commands that do not require login and advanced commands that require + user authentication. The `--version` flag can be used to display the version information. + Returns: int: Exit status of the program (0 for success, 1 for error). """ - parser = argparse.ArgumentParser( description="""Penify CLI tool for: 1. AI commit message generation with JIRA integration to enhance commit messages.