From c41daf449f01a06ff7174fea72d550470e2eb023 Mon Sep 17 00:00:00 2001 From: Vincent Hatakeyama Date: Wed, 17 Dec 2025 09:55:41 +0100 Subject: [PATCH] Fix exception messages The messages mention tools.hatch-odoo instead of tool.hatch-odoo. --- src/hatch_odoo/config.py | 2 +- src/hatch_odoo/metadata_hook.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hatch_odoo/config.py b/src/hatch_odoo/config.py index 130696f..cd7f7ad 100644 --- a/src/hatch_odoo/config.py +++ b/src/hatch_odoo/config.py @@ -29,7 +29,7 @@ def load_hatch_odoo_config(root: str) -> dict: def iter_addons_dirs(root: str, config: dict) -> Iterator[Path]: addons_dirs = config.get("addons_dirs") if not addons_dirs: - raise RuntimeError("missing tools.hatch-odoo.addons_dir in pyproject.toml") + raise RuntimeError("missing tool.hatch-odoo.addons_dir in pyproject.toml") for addons_dir in [Path(root) / d for d in addons_dirs]: if not addons_dir.is_dir(): continue diff --git a/src/hatch_odoo/metadata_hook.py b/src/hatch_odoo/metadata_hook.py index e8edfa0..6efc0e0 100644 --- a/src/hatch_odoo/metadata_hook.py +++ b/src/hatch_odoo/metadata_hook.py @@ -56,7 +56,7 @@ def update(self, metadata: dict) -> None: "'dependencies' may not be listed in the 'project' table when using " "hatch-odoo to populate dependencies from Odoo addons manifests. " "If you need to add dependencies that are not in Odoo addons " - "manifests, please use the 'tools.hatch-odoo.dependencies' key." + "manifests, please use the 'tool.hatch-odoo.dependencies' key." ) if "dependencies" not in metadata.get("dynamic", []): raise ValueError(