From ebd5bad6237396220a4445d96dbd1013c25950ed Mon Sep 17 00:00:00 2001 From: selten Date: Mon, 10 Mar 2025 16:47:56 +0100 Subject: [PATCH] Allow overriding datatypes for planemo lint Allow overriding the datatypes_conf.xml.sample that's added by default by the Python galaxy-tool-util package for non-standard datatype support --- lib/galaxy/tool_util/linters/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tool_util/linters/datatypes.py b/lib/galaxy/tool_util/linters/datatypes.py index cd35f0600fc..d63ba6bd89a 100644 --- a/lib/galaxy/tool_util/linters/datatypes.py +++ b/lib/galaxy/tool_util/linters/datatypes.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: from galaxy.tool_util.parser import ToolSource from galaxy.util.resources import Traversable -DATATYPES_CONF = resource_path(__name__, "datatypes_conf.xml.sample") +DATATYPES_CONF = os.getenv('DATATYPES_CONF', resource_path(__package__, "datatypes_conf.xml.sample")) def _parse_datatypes(datatype_conf_path: Union[str, "Traversable"]) -> Set[str]: