File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1- __all__ = ["ping" , "__version__" ]
2- __version__ = "0.1.0"
1+ from typing import List
2+
3+ __all__ : List [str ] = ["ping" , "__version__" ]
4+ __version__ = "0.0.1"
5+
36
47def ping () -> str :
58 return "pong"
Original file line number Diff line number Diff line change 11from __future__ import annotations
2- import sys
32import click
43from . import __version__ , ping
54
5+
66@click .command ()
77@click .option ("--version" , is_flag = True , help = "Show version and exit." )
88def main (version : bool ) -> None :
@@ -12,5 +12,6 @@ def main(version: bool) -> None:
1212 click .echo (ping ())
1313 raise SystemExit (0 )
1414
15+
1516if __name__ == "__main__" :
1617 main ()
Original file line number Diff line number Diff line change 11import commit_guardian as cg
22
3+
34def test_ping () -> None :
45 assert cg .ping () == "pong"
You can’t perform that action at this time.
0 commit comments