[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"

[project]
name = "hermes-chatto-plugin"
version = "1.0.0"
description = "Chatto platform adapter for Hermes Agent (includes vendored chattolib)"
requires-python = ">=3.11"
license = {text = "MIT"}

authors = [
    {name = "liv", email = "paul@klumpp.de"},
]

#[project.entry-points."hermes_agent.plugins"]
#hermes-chatto-plugin = "hermes-chatto-plugin"

[dependency-groups]
dev = [
    "pytest>=9.0",
    "pytest-asyncio>=0.24",
]

[tool.setuptools.packages.find]
where = ["."]

[tool.pytest.ini_options]
# importlib mode: the plugin root is itself a package (__init__.py), so pytest's
# default "prepend" mode tries to import the test modules as part of it, which
# fails because the checkout directory name is not a valid Python identifier.
addopts = "--import-mode=importlib"
asyncio_mode = "auto"
# Only our own tests — vendor/ ships the upstream test suites of some packages.
testpaths = ["test_adapter.py", "test_platform_config.py"]
norecursedirs = ["vendor", "myvenv", ".venv"]
