diff options
author | Franck Cuny <franck@fcuny.net> | 2024-07-22 17:46:36 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-07-22 17:46:36 -0700 |
commit | d4b6d2b2053e335e5457e34c128ec8a1a156671d (patch) | |
tree | 95dc405071eed3c61142754249b9de9326f4285d /packages/git-blame-stats/git-blame-stats.py | |
parent | delete github actions (diff) | |
download | world-d4b6d2b2053e335e5457e34c128ec8a1a156671d.tar.gz |
add lint as a target and reformat
Diffstat (limited to 'packages/git-blame-stats/git-blame-stats.py')
-rwxr-xr-x | packages/git-blame-stats/git-blame-stats.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/git-blame-stats/git-blame-stats.py b/packages/git-blame-stats/git-blame-stats.py index 3cc4f4a..5f2a43f 100755 --- a/packages/git-blame-stats/git-blame-stats.py +++ b/packages/git-blame-stats/git-blame-stats.py @@ -4,11 +4,8 @@ import argparse import subprocess from typing import Any - parser = argparse.ArgumentParser() -parser.add_argument( - "rev", metavar="revision", type=str, help="the revision", default="HEAD", nargs="?" -) +parser.add_argument("rev", metavar="revision", type=str, help="the revision", default="HEAD", nargs="?") args = parser.parse_args() authors: dict[str, Any] = dict() @@ -90,6 +87,4 @@ for author, stats in authors.items(): lines = stats["lines"] commits = len(stats["commits"]) files = len(stats["files"]) - print( - f"{author:{max_lenght_author}} {email:{max_lenght_email}} {lines:6} {commits:6} {files:6}" - ) + print(f"{author:{max_lenght_author}} {email:{max_lenght_email}} {lines:6} {commits:6} {files:6}") |