Skip to content

Commit 14331a6

Browse files
author
CoderDeltaLAN
committed
chore: remove unused import and tidy whitespace; keep tests green
1 parent 3af22dc commit 14331a6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/commit_guardian/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__all__ = ["ping", "__version__"]
22
__version__ = "0.1.0"
33

4+
45
def ping() -> str:
56
return "pong"

src/commit_guardian/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
2-
import sys
32
import click
43
from . import __version__, ping
54

5+
66
@click.command()
77
@click.option("--version", is_flag=True, help="Show version and exit.")
88
def main(version: bool) -> None:
@@ -12,5 +12,6 @@ def main(version: bool) -> None:
1212
click.echo(ping())
1313
raise SystemExit(0)
1414

15+
1516
if __name__ == "__main__":
1617
main()

tests/test_sanity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import commit_guardian as cg
22

3+
34
def test_ping() -> None:
45
assert cg.ping() == "pong"

0 commit comments

Comments
 (0)