From 3debb3046c73db8727769479b4d754232caf4d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Thu, 20 Feb 2020 19:03:51 +0100 Subject: [PATCH] code cleanup --- scripts/metrics/repo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/metrics/repo.py b/scripts/metrics/repo.py index 81a8f2b..c8280fa 100755 --- a/scripts/metrics/repo.py +++ b/scripts/metrics/repo.py @@ -24,6 +24,7 @@ from datetime import tzinfo GCP_PROJECT_ID = 'llvm-premerge-checks' + class RepoStats: def __init__(self): @@ -62,6 +63,7 @@ class RepoStats: return "\n".join(results) + def get_reverts_per_day(repo_path: str, max_age: datetime.datetime) -> RepoStats: stats = RepoStats() repo = git.Repo(repo_path)