From f0cd08f1bfe873a3237784ded5eba6f149ccb375 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 20 May 2024 09:23:01 -0500 Subject: [PATCH] removed unused warnings in copyright hook --- src/rapids_pre_commit_hooks/copyright.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rapids_pre_commit_hooks/copyright.py b/src/rapids_pre_commit_hooks/copyright.py index 8e182f0..68aba9b 100644 --- a/src/rapids_pre_commit_hooks/copyright.py +++ b/src/rapids_pre_commit_hooks/copyright.py @@ -30,10 +30,6 @@ COPYRIGHT_REPLACEMENT = "Copyright (c) {first_year}-{last_year}, NVIDIA CORPORATION" -class NoSuchBranchWarning(RuntimeWarning): - pass - - class NoTargetBranchWarning(RuntimeWarning): pass @@ -42,10 +38,6 @@ class ConflictingFilesWarning(RuntimeWarning): pass -class ConflictingFilesError(RuntimeError): - pass - - def match_copyright(content): return list(COPYRIGHT_RE.finditer(content))