Skip to content

Commit 29ceaf8

Browse files
authored
[Fix] change copyright check condition (#1)
1 parent 65bdc68 commit 29ceaf8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pre_commit_hooks/check_copyright.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
import os.path as osp
66
from typing import List
77

8-
HEADER = 'Copyright (c) SI-Analytics. All rights reserved.\n'
8+
HEADER = 'Copyright (c) SI Analytics. All rights reserved.\n'
99

1010
HEADER_KEYWORDS = {'Copyright', 'License'}
1111

1212

1313
def has_copyright(lines: List[str]) -> bool:
1414
for line in lines:
1515
if not HEADER_KEYWORDS.isdisjoint(set(line.split(' '))):
16-
return True
16+
if 'SI Analytics' in line:
17+
return True
1718
return False
1819

1920

0 commit comments

Comments
 (0)