Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/galaxy/tool_util/linters/_util.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 import re | |
2 | |
3 | |
4 def is_datasource(tool_xml): | |
5 """Returns true if the tool is a datasource tool""" | |
6 return tool_xml.getroot().attrib.get('tool_type', '') == 'data_source' | |
7 | |
8 | |
9 def is_valid_cheetah_placeholder(name): | |
10 """Returns true if name is a valid Cheetah placeholder""" | |
11 return not re.match(r"^[a-zA-Z_]\w*$", name) is None |