Files
chemenu-ng/pyproject.toml
torbenandClaude Sonnet 5.5 f761c27d1a Add live test behind the live marker
Plain pytest deselects it; -m live runs it and skips without a key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 22:06:58 +01:00

87 lines
1.8 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", "-m", "not live"]
markers = ["live: calls a paid provider API; run with -m live"]
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