mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 01:50:24 -05:00
first draft of react-based list ui (#111)
This commit is contained in:
6
.github/workflows/check-license.py
vendored
6
.github/workflows/check-license.py
vendored
@@ -50,7 +50,7 @@ def has_license(f):
|
||||
def file_has_license(filename):
|
||||
with open(filename, 'r') as f:
|
||||
return has_license(f)
|
||||
|
||||
|
||||
|
||||
def main(args):
|
||||
if not args:
|
||||
@@ -59,8 +59,8 @@ def main(args):
|
||||
missing = [f for f in args
|
||||
if FILENAME_MATCHER.match(f) and not file_has_license(f)]
|
||||
if missing:
|
||||
print('The following files are missing expected copyright/license headers:')
|
||||
print('\n'.join(missing))
|
||||
print('The following files are missing expected copyright/license headers:', file=sys.stderr)
|
||||
print('\n'.join(missing), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user