Needed for the Anthropic provider adapter and its deadline transport. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
86 lines
1.7 KiB
TOML
86 lines
1.7 KiB
TOML
[project]
|
|
name = "chemenu-ng"
|
|
version = "0.0.0"
|
|
description = "Chemenu as a service: code orchestrates, LLMs judge."
|
|
requires-python = ">=3.14,<3.15"
|
|
license = "AGPL-3.0-only"
|
|
license-files = ["LICENSE"]
|
|
dependencies = [
|
|
"anthropic>=2.14.0",
|
|
"httpx2>=2.16.2",
|
|
"pydantic>=2.14.4",
|
|
"pyyaml>=6.0.4",
|
|
]
|
|
|
|
[project.scripts]
|
|
chemenu-eval = "chemenu.evals.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["uv_build>=0.13.7,<0.14"]
|
|
build-backend = "uv_build"
|
|
|
|
[tool.uv.build-backend]
|
|
module-name = "chemenu"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8",
|
|
"ruff>=0.8",
|
|
"pyright>=1.1.390",
|
|
"pre-commit>=4",
|
|
"pre-commit-hooks>=5",
|
|
"types-pyyaml>=6.0.12.20261122",
|
|
"import-linter>=2.17",
|
|
]
|
|
|
|
[tool.uv]
|
|
exclude-newer = "7 days"
|
|
|
|
[tool.ruff]
|
|
target-version = "py314"
|
|
line-length = 100
|
|
src = ["src", "tests"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "W", "F", "I", "B", "UP", "SIM", "RUF", "PT", "N", "S", "C4", "PTH", "RET"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/**" = ["S101"]
|
|
|
|
[tool.pyright]
|
|
include = ["src", "tests"]
|
|
typeCheckingMode = "strict"
|
|
pythonVersion = "3.14"
|
|
venvPath = "."
|
|
venv = ".venv"
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "9.0"
|
|
testpaths = ["tests"]
|
|
addopts = ["-ra", "--strict-markers", "--strict-config"]
|
|
xfail_strict = true
|
|
|
|
[tool.importlinter]
|
|
root_package = "chemenu"
|
|
|
|
[[tool.importlinter.contracts]]
|
|
id = "layers"
|
|
name = "Layers import inwards only"
|
|
type = "layers"
|
|
containers = ["chemenu"]
|
|
layers = [
|
|
"application | adapters | evals",
|
|
"ports",
|
|
"domain",
|
|
]
|
|
exhaustive = true
|
|
|
|
# The root package is the container of the layers and not checked as one of them.
|
|
[[tool.importlinter.contracts]]
|
|
id = "root"
|
|
name = "Root package imports no layer"
|
|
type = "forbidden"
|
|
source_modules = ["chemenu"]
|
|
forbidden_modules = ["chemenu.**"]
|
|
as_packages = false
|