Skip to content

Commit a51e047

Browse files
committed
Ruff format
1 parent d799f83 commit a51e047

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/warnet/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ def version() -> None:
2626
# First try to get the version from the installed package
2727
try:
2828
from warnet._version import __version__
29+
2930
version_str = __version__
3031
except ImportError:
3132
version_str = "0.0.0"
32-
33+
3334
# Try to get git commit to append
3435
try:
3536
# Check if we're in a git repository
@@ -44,7 +45,7 @@ def version() -> None:
4445

4546
# If we have a commit hash, append it to the version
4647
# Don't append if already has a hash
47-
if commit and "-" not in version_str:
48+
if commit and "-" not in version_str:
4849
version_str = f"{version_str}-{commit}"
4950

5051
click.echo(f"warnet version {version_str}")

0 commit comments

Comments
 (0)