mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-23 08:52:56 +00:00
97 lines
2.0 KiB
TOML
97 lines
2.0 KiB
TOML
![]() |
[build-system]
|
||
|
requires = ["hatchling"]
|
||
|
build-backend = "hatchling.build"
|
||
|
|
||
|
[project]
|
||
|
name = "agbench"
|
||
|
dynamic = ["version"]
|
||
|
authors = [
|
||
|
{ name="Adam Fourney", email="adamfo@microsoft.com" },
|
||
|
]
|
||
|
description = "AGNext Benchmarking Tools"
|
||
|
readme = "README.md"
|
||
|
requires-python = ">=3.8, <3.13"
|
||
|
classifiers = [
|
||
|
"Programming Language :: Python :: 3",
|
||
|
"License :: OSI Approved :: MIT License",
|
||
|
"Operating System :: OS Independent",
|
||
|
]
|
||
|
|
||
|
dependencies = [
|
||
|
"openai",
|
||
|
"docker",
|
||
|
"huggingface_hub",
|
||
|
"tabulate",
|
||
|
"azure-identity",
|
||
|
]
|
||
|
|
||
|
|
||
|
[tool.hatch.envs.default]
|
||
|
installer = "uv"
|
||
|
dependencies = [
|
||
|
"pyright==1.1.368",
|
||
|
"mypy==1.10.0",
|
||
|
"ruff==0.4.8",
|
||
|
"types-tabulate",
|
||
|
"types-docker"
|
||
|
]
|
||
|
|
||
|
[tool.hatch.envs.default.extra-scripts]
|
||
|
pip = "{env:HATCH_UV} pip {args}"
|
||
|
|
||
|
[tool.hatch.envs.default.scripts]
|
||
|
fmt = "ruff format"
|
||
|
lint = "ruff check"
|
||
|
check = [
|
||
|
"ruff format",
|
||
|
"ruff check --fix",
|
||
|
"pyright",
|
||
|
"mypy",
|
||
|
]
|
||
|
|
||
|
[tool.hatch.version]
|
||
|
path = "src/agbench/version.py"
|
||
|
|
||
|
[project.scripts]
|
||
|
agbench = "agbench.cli:main"
|
||
|
|
||
|
[tool.ruff]
|
||
|
line-length = 120
|
||
|
fix = true
|
||
|
exclude = ["build", "dist", "src/agbench/res/*", "src/agbench/template/*",]
|
||
|
target-version = "py310"
|
||
|
include = ["src/**"]
|
||
|
|
||
|
[tool.ruff.lint]
|
||
|
select = ["E", "F", "W", "B", "Q", "I", "ASYNC"]
|
||
|
ignore = ["F401", "E501"]
|
||
|
|
||
|
[tool.ruff.lint.flake8-tidy-imports]
|
||
|
[tool.ruff.lint.flake8-tidy-imports.banned-api]
|
||
|
"unittest".msg = "Use `pytest` instead."
|
||
|
|
||
|
[tool.mypy]
|
||
|
files = ["src"]
|
||
|
|
||
|
strict = true
|
||
|
python_version = "3.10"
|
||
|
ignore_missing_imports = true
|
||
|
|
||
|
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
|
||
|
disallow_untyped_defs = true
|
||
|
no_implicit_optional = true
|
||
|
check_untyped_defs = true
|
||
|
warn_return_any = true
|
||
|
show_error_codes = true
|
||
|
warn_unused_ignores = false
|
||
|
|
||
|
disallow_incomplete_defs = true
|
||
|
disallow_untyped_decorators = true
|
||
|
disallow_any_unimported = true
|
||
|
|
||
|
[tool.pyright]
|
||
|
include = ["src"]
|
||
|
typeCheckingMode = "strict"
|
||
|
reportUnnecessaryIsInstance = false
|
||
|
reportMissingTypeStubs = false
|