This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2062844
commit 838f720
Showing
22 changed files
with
515 additions
and
221 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
select = "E303, W293, W291, W292, E305, E231, E302" | ||
exclude = | ||
.tox, | ||
__pycache__, | ||
*.pyc, | ||
.env | ||
venv*/*, | ||
.venv/*, | ||
reports/*, | ||
dist/*, | ||
agent/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: [ master, ci-test* ] | ||
pull_request: | ||
branches: [ stable, master, release-* ] | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
min-python-version: "3.10" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Set up Python ${{ env.min-python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.min-python-version }} | ||
|
||
- id: get_date | ||
name: Get date | ||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python - | ||
- name: Set up Poetry cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pypoetry | ||
.venv | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/poetry.lock') }}-${{ steps.get_date.outputs.date }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- name: Lint with flake8 | ||
run: poetry run flake8 | ||
|
||
- name: Check black formatting | ||
run: poetry run black . --check | ||
if: success() || failure() | ||
|
||
- name: Check isort formatting | ||
run: poetry run isort . --check | ||
if: success() || failure() | ||
|
||
- name: Check mypy formatting | ||
run: poetry run mypy --ignore-missing-imports . | ||
if: success() || failure() | ||
|
||
- name: Check for unused imports and pass statements | ||
run: | | ||
cmd="poetry run autoflake --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring agbenchmark" | ||
$cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1) | ||
if: success() || failure() |
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,4 +1,4 @@ | ||
[submodule "Auto-GPT"] | ||
[submodule "agent/Auto-GPT"] | ||
path = agent/Auto-GPT | ||
url = https://github.com/Significant-Gravitas/Auto-GPT.git | ||
branch = benchmark-integration |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.10.10 |
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
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,8 @@ | ||
from agbenchmark.Challenge import Challenge | ||
import pytest | ||
|
||
from agbenchmark.challenge import Challenge | ||
|
||
|
||
@pytest.mark.retrieval | ||
class RetrievalChallenge(Challenge): | ||
"""Challenge for information-retrieval""" | ||
|
||
pass |
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.