-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (56 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
67 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[project]
name = "test-bench"
version = "0.1.0"
description = "Testbench to evaluate agents using Ragas"
requires-python = ">=3.12"
dependencies = [
"a2a-sdk>=0.3.10",
"boto3>=1.26.0",
"httpx>=0.28.1",
"pandas>=2.3.3",
"pandas-stubs>=2.3.0",
"pyarrow>=21.0.0",
"ragas>=0.4.3",
"types-boto3>=1.0.2",
"opentelemetry-api>=1.20.0",
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp-proto-http>=1.20.0",
"opentelemetry-instrumentation-httpx>=0.45b0",
]
[dependency-groups]
dev = [
"bandit[toml]>=1.7.8",
"mypy>=1.17.0",
"poethepoet>=0.31.1",
"ruff>=0.12.7",
"pytest>=7.4.0",
"pytest-asyncio>=1.3.0",
]
[tool.poe.tasks]
test = "pytest tests/ -v"
test_e2e = "pytest tests_e2e/ -v"
format = "ruff format"
lint = "ruff check --fix"
ruff = ["format", "lint"]
bandit = "bandit -c pyproject.toml -r ."
mypy = "mypy ."
check = ["test", "mypy", "bandit", "ruff"]
[tool.ruff]
# Allow lines to be as long as 120.
line-length = 120
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
# I001 --> enable import sorting rules
# Q --> enable flake8-quotes rules for consistent quote style
# N --> pep8-naming for proper naming conventions
# PT --> flake8-pytest-style for pytest best practices
# TID251 --> banned relative imports
# DTZ --> datetime timezone awareness
extend-select = ["Q", "N", "I001", "PT", "TID251", "DTZ"]
[tool.mypy]
mypy_path = "scripts"
explicit_package_bases = true
[tool.bandit]
exclude_dirs = [".cache", ".venv"]
[tool.bandit.assert_used]
skips = ["*_test.py", "*test_*.py"]