style: format code using linter

This commit is contained in:
Paul Gauthier (aider) 2024-08-13 12:37:00 -07:00
parent 1b39b18772
commit 8988eb9cdd

View file

@ -19,8 +19,12 @@ def blame(start_tag, end_tag=None):
revision = end_tag if end_tag else "HEAD"
files = run(["git", "ls-tree", "-r", "--name-only", revision]).strip().split("\n")
files = [f for f in files if f.endswith(('.py', '.scm', '.sh', 'Dockerfile', 'Gemfile')) or
(f.startswith('.github/workflows/') and f.endswith('.yml'))]
files = [
f
for f in files
if f.endswith((".py", ".scm", ".sh", "Dockerfile", "Gemfile"))
or (f.startswith(".github/workflows/") and f.endswith(".yml"))
]
all_file_counts = {}
grand_total = defaultdict(int)