From d4b6d2b2053e335e5457e34c128ec8a1a156671d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 22 Jul 2024 17:46:36 -0700 Subject: add lint as a target and reformat --- packages/git-blame-stats/git-blame-stats.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'packages/git-blame-stats') 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}") -- cgit 1.4.1