mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Remove unused imports and split long line in blame.py
This commit is contained in:
parent
8ff7242bce
commit
1044c7a71e
1 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
from datetime import datetime
|
||||
from operator import itemgetter
|
||||
|
@ -11,8 +9,6 @@ from operator import itemgetter
|
|||
import semver
|
||||
import yaml
|
||||
|
||||
from aider.dump import dump
|
||||
|
||||
|
||||
def blame(start_tag, end_tag=None):
|
||||
commits = get_all_commit_hashes_between_tags(start_tag, end_tag)
|
||||
|
@ -152,7 +148,8 @@ def get_counts_for_file(start_tag, end_tag, authors, fname):
|
|||
|
||||
return dict(line_counts)
|
||||
except subprocess.CalledProcessError:
|
||||
# print(f"Warning: Unable to blame file {fname}. It may have been added after {start_tag} or removed before {end_tag or 'HEAD'}.", file=sys.stderr)
|
||||
# print(f"Warning: Unable to blame file {fname}. It may have been added after {start_tag} "
|
||||
# f"or removed before {end_tag or 'HEAD'}.", file=sys.stderr)
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue