Coverage for src / ensembl / template / hello_world.py: 100%
4 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-01-31 16:39 +0000
« prev ^ index » next coverage.py v7.13.2, created at 2026-01-31 16:39 +0000
1# See the NOTICE file distributed with this work for additional information
2# regarding copyright ownership.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14"""Hello world module"""
16__all__ = ["hello"]
18import argparse
21def hello(word: str) -> str:
22 """Returns the concatenation of "Hello " with the given string.
24 Args:
25 word: The string you want to concatenate to "Hello ".
27 """
28 return f"Hello {word}"
31def main() -> None:
32 """Module's entry-point."""
33 parser = argparse.ArgumentParser(prog="Greetings program", description="Says 'hi' to the argument given")
34 parser.add_argument("word")
35 args = parser.parse_args()
36 hello(args.word)