Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/check_code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test and Code Quality
on: [push]

jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: [3.12]
poetry-version: [1.8.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest
code-quality:
strategy:
fail-fast: false
matrix:
python-version: [3.12]
poetry-version: [1.8.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run black
run: poetry run black . --check
28 changes: 20 additions & 8 deletions init_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,34 @@
if gh_repo is None:
gh_repo = input("Enter the GitHub repo URL: ")
if gh_api_token_intern is None:
gh_api_token_intern = input("Enter your GitHub Personnal Access token for the intern (https://github.com/settings/tokens): ")
gh_api_token_intern = input(
"Enter your GitHub Personnal Access token for the intern (https://github.com/settings/tokens): "
)
if gh_api_token_reviewer is None:
gh_api_token_reviewer = input("Enter your GitHub Personnal Access token for the reviewer (https://github.com/settings/tokens): ")
gh_api_token_reviewer = input(
"Enter your GitHub Personnal Access token for the reviewer (https://github.com/settings/tokens): "
)

if trello_api_key is None:
trello_api_key = input("Enter your Trello API key (https://trello.com/power-ups/admin): ")
trello_api_key = input(
"Enter your Trello API key (https://trello.com/power-ups/admin): "
)
if trello_api_secret is None:
trello_api_secret = input("Enter your Trello API secret (https://trello.com/power-ups/admin): ")
trello_api_secret = input(
"Enter your Trello API secret (https://trello.com/power-ups/admin): "
)
if trello_token is None:
auth_token = create_oauth_token(key=trello_api_key, secret=trello_api_secret, name='Trello API')
trello_token = auth_token['oauth_token']
auth_token = create_oauth_token(
key=trello_api_key, secret=trello_api_secret, name="Trello API"
)
trello_token = auth_token["oauth_token"]
if trello_board_id is None:
trello_board_id = input("Enter your Trello Board ID: ")

if openai_api_key is None:
openai_api_key = input("Enter your OpenAI API key (https://platform.openai.com/api-keys): ")
openai_api_key = input(
"Enter your OpenAI API key (https://platform.openai.com/api-keys): "
)


# Write them back to the .env file
Expand All @@ -46,4 +58,4 @@
f.write(f"TRELLO_TOKEN={trello_token}\n")
f.write(f"TRELLO_BOARD_ID={trello_board_id}\n")

print("Environment variables set up successfully")
print("Environment variables set up successfully")
209 changes: 209 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[tool.poetry]
name = "open-architect"
version = "0.0.2"

description = "Your automated SWE fleet to get your tickets from the Backlog to Prod!"

authors = [
"Aiswarya Sankar <aiswarya.s@berkeley.edu>",
"Axel Peytavin <peytavin@stanford.edu>",
"Pierre Collignon <collignonpie@gmail.com>",
"Yuma Tanaka <>"
]

license = "GPL-3.0+"

readme = "README.md"

repository = "https://github.com/OpenArchitectAI/open-architect"

classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
]

packages = [
{ include = "src" }
]

[tool.poetry.dependencies]
python = ">=3.8"

[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
pytest = "^8.1.1"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Loading