Loading hooks/copyright.py +5 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,11 @@ def get_file_years(paths: list[Path], ignored_commits: set[str]) -> dict[Path, i output = dict[Path, int]() for result in proc.stdout.split(b'\0\0'): try: commits, files = result.splitlines() except ValueError: msg = f"bad value: {result!r} in {proc.stdout!r}" raise AssertionError(msg) combos = product(split_commits(commits), split_paths(files)) for (commit_year, commit_hash), path in combos: if commit_hash in ignored_commits: Loading Loading
hooks/copyright.py +5 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,11 @@ def get_file_years(paths: list[Path], ignored_commits: set[str]) -> dict[Path, i output = dict[Path, int]() for result in proc.stdout.split(b'\0\0'): try: commits, files = result.splitlines() except ValueError: msg = f"bad value: {result!r} in {proc.stdout!r}" raise AssertionError(msg) combos = product(split_commits(commits), split_paths(files)) for (commit_year, commit_hash), path in combos: if commit_hash in ignored_commits: Loading