Skip to content

Commit 82976c5

Browse files
Merge pull request #1 from JustInternetAI/fix/python-tests
Fix/python tests
2 parents 0c44cd6 + 670845c commit 82976c5

5 files changed

Lines changed: 132 additions & 15 deletions

File tree

.claude/settings.local.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
"Bash(\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe\" --build . --config Debug)",
1313
"Bash(git fetch:*)",
1414
"Bash(git describe:*)",
15-
"Bash(git checkout:*)"
15+
"Bash(git checkout:*)",
16+
"Bash(dir:*)",
17+
"Bash(python -m pytest:*)",
18+
"Bash(python -m venv:*)",
19+
"Bash(python -m pip install:*)",
20+
"Bash(git add:*)",
21+
"Bash(git commit:*)",
22+
"Bash(git push:*)",
23+
"Bash(gh pr create:*)"
1624
],
1725
"deny": [],
1826
"ask": []

.github/workflows/python-tests.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,16 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install -r python/requirements.txt
39-
pip install pytest pytest-cov pytest-asyncio
38+
pip install -e .[dev]
4039
4140
- name: Run tests
4241
run: |
43-
cd tests
44-
pytest -v --cov=../python --cov-report=xml --cov-report=term
42+
pytest -v --cov-report=xml --cov-report=term
4543
4644
- name: Upload coverage to Codecov
4745
uses: codecov/codecov-action@v3
4846
with:
49-
file: ./tests/coverage.xml
47+
file: ./coverage.xml
5048
flags: unittests
5149
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
5250

@@ -60,22 +58,19 @@ jobs:
6058
with:
6159
python-version: '3.11'
6260

63-
- name: Install linting tools
61+
- name: Install package and linting tools
6462
run: |
65-
pip install black ruff mypy
63+
pip install -e .[dev]
6664
6765
- name: Run black (format check)
6866
run: |
69-
cd python
70-
black --check .
67+
black --check python
7168
7269
- name: Run ruff (lint)
7370
run: |
74-
cd python
75-
ruff check .
71+
ruff check python
7672
7773
- name: Run mypy (type check)
7874
run: |
79-
cd python
80-
mypy --ignore-missing-imports agent_runtime backends tools
75+
mypy --ignore-missing-imports python/agent_runtime python/backends python/tools
8176
continue-on-error: true # Don't fail on type errors initially

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Agent Arena is maintained by **JustInternetAI** (https://github.com/JustInternet
88

99
Agent Arena was founded in 2025 by:
1010

11-
- **Andrew Madison** - Co-Founder (https://github.com/andrewmadison)
11+
- **Andrew Madison** - Co-Founder (https://github.com/andrewbmadison)
1212
- **Justin Madison** - Co-Founder (https://github.com/justinmadison)
1313

1414
## Core Contributors

pyproject.toml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "agent-arena"
7+
version = "0.1.0"
8+
description = "LLM-driven autonomous agent benchmarking framework"
9+
readme = "README.md"
10+
requires-python = ">=3.11"
11+
license = {text = "Apache-2.0"}
12+
authors = [
13+
{name = "Andrew Madison"},
14+
{name = "Justin Madison"},
15+
]
16+
keywords = ["ai", "agents", "llm", "benchmark", "simulation"]
17+
classifiers = [
18+
"Development Status :: 3 - Alpha",
19+
"Intended Audience :: Developers",
20+
"Intended Audience :: Science/Research",
21+
"License :: OSI Approved :: Apache Software License",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
26+
]
27+
28+
dependencies = [
29+
"numpy>=1.24.0",
30+
"pydantic>=2.0.0",
31+
"msgpack>=1.0.5",
32+
"hydra-core>=1.3.0",
33+
"omegaconf>=2.3.0",
34+
"requests>=2.31.0",
35+
"python-dotenv>=1.0.0",
36+
"tenacity>=8.2.0",
37+
"aiohttp>=3.9.0",
38+
"tqdm>=4.66.0",
39+
"rich>=13.7.0",
40+
"structlog>=23.2.0",
41+
"python-json-logger>=2.0.7",
42+
"pandas>=2.0.0",
43+
]
44+
45+
[project.optional-dependencies]
46+
llm = [
47+
"llama-cpp-python>=0.2.0",
48+
"openai>=1.0.0",
49+
"torch>=2.0.0",
50+
"transformers>=4.35.0",
51+
]
52+
53+
vector = [
54+
"faiss-cpu>=1.7.4",
55+
"sentence-transformers>=2.2.0",
56+
"chromadb>=0.5.0",
57+
]
58+
59+
full = [
60+
"agent-arena[llm,vector]",
61+
"pillow>=10.0.0",
62+
]
63+
64+
dev = [
65+
"pytest>=7.4.0",
66+
"pytest-asyncio>=0.21.0",
67+
"pytest-cov>=4.1.0",
68+
"black>=23.0.0",
69+
"ruff>=0.1.0",
70+
"mypy>=1.5.0",
71+
]
72+
73+
[project.urls]
74+
Homepage = "https://github.com/JustInternetAI/AgentArena"
75+
Repository = "https://github.com/JustInternetAI/AgentArena"
76+
Issues = "https://github.com/JustInternetAI/AgentArena/issues"
77+
78+
[tool.setuptools]
79+
package-dir = {"" = "python"}
80+
81+
[tool.setuptools.packages.find]
82+
where = ["python"]
83+
84+
[tool.pytest.ini_options]
85+
testpaths = ["tests"]
86+
python_files = ["test_*.py"]
87+
python_classes = ["Test*"]
88+
python_functions = ["test_*"]
89+
addopts = [
90+
"-v",
91+
"--strict-markers",
92+
"--cov=agent_runtime",
93+
"--cov=backends",
94+
"--cov=tools",
95+
]
96+
97+
[tool.black]
98+
line-length = 100
99+
target-version = ["py311", "py312"]
100+
include = '\.pyi?$'
101+
102+
[tool.ruff]
103+
line-length = 100
104+
target-version = "py311"
105+
select = ["E", "F", "I", "N", "W", "UP"]
106+
ignore = ["E501"] # Line too long (handled by black)
107+
108+
[tool.mypy]
109+
python_version = "3.11"
110+
warn_return_any = true
111+
warn_unused_configs = true
112+
disallow_untyped_defs = false
113+
ignore_missing_imports = true

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for Agent Arena."""

0 commit comments

Comments
 (0)