-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from dannyl1u/chore/reformat-code-with-code-fo…
…rmatters Chore/reformat code with code formatters
- Loading branch information
Showing
7 changed files
with
121 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import logging | ||
|
||
from flask import Flask | ||
|
||
from src.webhook_handler import webhook_blueprint | ||
import logging | ||
|
||
app = Flask(__name__) | ||
app.register_blueprint(webhook_blueprint) | ||
logging.basicConfig() | ||
logging.getLogger().setLevel(logging.INFO) | ||
|
||
if __name__ == '__main__': | ||
app.run(port=4000) | ||
if __name__ == "__main__": | ||
app.run(port=4000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import os | ||
|
||
from dotenv import load_dotenv | ||
|
||
load_dotenv() | ||
|
||
APP_ID = os.getenv("APP_ID") | ||
PRIVATE_KEY = open('rsa.pem', 'r').read() | ||
PRIVATE_KEY = open("rsa.pem", "r").read() | ||
WEBHOOK_SECRET = os.getenv("WEBHOOK_SECRET") | ||
SIMILARITY_THRESHOLD = 0.5 | ||
SIMILARITY_THRESHOLD = 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
from .github_api import get_access_token, close_issue, leave_comment, fetch_existing_issues | ||
from .github_api import ( | ||
get_access_token, | ||
close_issue, | ||
leave_comment, | ||
fetch_existing_issues, | ||
) | ||
from .issue_handler import handle_new_issue | ||
from .vector_db import add_issue_to_chroma, query_similar_issue, remove_issues_from_chroma, add_issues_to_chroma | ||
from .vector_db import ( | ||
add_issue_to_chroma, | ||
query_similar_issue, | ||
remove_issues_from_chroma, | ||
add_issues_to_chroma, | ||
) | ||
from .webhook_handler import webhook_blueprint | ||
|
||
__all__ = [ | ||
'get_access_token', 'close_issue', 'leave_comment', 'fetch_existing_issues', | ||
'handle_new_issue', | ||
'add_issue_to_chroma', 'query_similar_issue', 'remove_issues_from_chroma', 'add_issues_to_chroma', | ||
'webhook_blueprint' | ||
] | ||
"get_access_token", | ||
"close_issue", | ||
"leave_comment", | ||
"fetch_existing_issues", | ||
"handle_new_issue", | ||
"add_issue_to_chroma", | ||
"query_similar_issue", | ||
"remove_issues_from_chroma", | ||
"add_issues_to_chroma", | ||
"webhook_blueprint", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.