Skip to content

Commit

Permalink
yapf/flake fight resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
thehesiod committed Nov 22, 2024
1 parent f9bbd13 commit 4ce1726
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gitfame/_gitfame.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ def _get_auth_stats(
if C:
base_cmd.extend(["-C", "-C"]) # twice to include file creation

auth_stats = defaultdict(lambda: {'loc': 0, 'files': set(), 'ctimes': [], 'commits': set()}
) # {author: {[loc,files,ctimes,exts]:
auth_stats = defaultdict(lambda: {'loc': 0, 'files': set(), 'ctimes': [], 'commits': set()})
auth2em = defaultdict(set)

author_canonicalizer = _get_user_canonicalization_function(author_mapping_file_path,
Expand Down Expand Up @@ -416,7 +415,7 @@ def stats_append(fname: str, auth: str, loc: int, tstamp: str, author_email: str
completed = queue.Queue()

def process_blame_out(commit_infos: Dict[str, _CommitInfo]):
for commit_id, cinfo in commit_infos.items(): # for each chunk
for commit_id, cinfo in commit_infos.items():
for fname, loc in cinfo.file_locs.items():
stats_append(fname, cinfo.info['author'], loc, cinfo.info['committer-time'],
cinfo.info['author-mail'], commit_id)
Expand Down

0 comments on commit 4ce1726

Please sign in to comment.