Skip to content

Commit

Permalink
move sources to src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed Oct 11, 2024
1 parent 793ca65 commit 821b69f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
test:
Expand All @@ -29,16 +30,16 @@ jobs:
- name: Test app startup
run: |
python -c "import main; print('Main module imported successfully')"
python main.py --help
python -m main --help
env:
GITHUB_APP_ID: dummy_id
GITHUB_PRIVATE_KEY: dummy_key
GITHUB_APP_WEBHOOK_SECRET: dummy_secret

- name: Test server startup
run: |
timeout 5s python main.py --server || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
timeout 5s python -m main --server || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
env:
GITHUB_APP_ID: dummy_id
GITHUB_PRIVATE_KEY: dummy_key
GITHUB_APP_WEBHOOK_SECRET: dummy_secret
GITHUB_APP_WEBHOOK_SECRET: dummy_secret
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
[project]
name = "pearbot"
description = "An AI assistant that reviews Pull Requests from GitHub and/or local diffs"
version = "0.1.1"
version = "0.1.0"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"Flask==2.0.1",
"python-dotenv==0.19.0",
"PyJWT==2.3.0",
"requests==2.26.0",
"PyGithub==1.55.0",
"ollama==0.1.0",
"colorama==0.4.6",
"Flask==3.0.3",
"python-dotenv==1.0.1",
"PyJWT==2.9.0",
"requests==2.31.0",
"PyGithub==2.4.0",
"ollama==0.3.10",
]

[project.urls]
repository = "https://github.com/rbx/pearbot"

[tool.setuptools.packages.find]
where = ["src"]
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion auth.py → src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import requests
import hmac
import hashlib
from dotenv import load_dotenv

GITHUB_APP_ID = os.getenv("GITHUB_APP_ID")
GITHUB_PRIVATE_KEY = os.getenv("GITHUB_PRIVATE_KEY")
Expand Down
1 change: 0 additions & 1 deletion main.py → src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import traceback

from colorama import Fore, Style
import colorama

from flask import Flask, request, abort
from dotenv import load_dotenv
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 821b69f

Please sign in to comment.