From ba24bb12945cfb8c4eb33072dbc9a946f64242d5 Mon Sep 17 00:00:00 2001 From: Zach Wilson Date: Thu, 20 Jun 2024 21:33:21 +0000 Subject: [PATCH] fixing dependencies --- requirements.txt | 2 ++ src/generate_comment.py | 9 --------- src/python_test.py | 4 ++++ 3 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6084aff --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +openai +PyGithub \ No newline at end of file diff --git a/src/generate_comment.py b/src/generate_comment.py index d812300..1a3c6f7 100644 --- a/src/generate_comment.py +++ b/src/generate_comment.py @@ -1,7 +1,6 @@ import os import sys import requests -import boto3 from util import get_logger, get_api_key, get_git_creds, get_changed_files from openai import OpenAI from github import Github @@ -21,14 +20,6 @@ def get_pr_files(pr_number): return changes -def download_from_s3(s3_bucket: str, s3_path: str, local_path: str): - s3 = boto3.client('s3') - try: - s3.download_file(s3_bucket, s3_path, local_path) - except Exception as e: - raise Exception(f"Failed to download from S3: {e}") - - def get_feedback(filename: str, system_prompt: str, user_prompt: str) -> str: comment = '' response = client.chat.completions.create( diff --git a/src/python_test.py b/src/python_test.py index e69de29..71052c8 100644 --- a/src/python_test.py +++ b/src/python_test.py @@ -0,0 +1,4 @@ + +hello = 'world' + +print(hello) \ No newline at end of file