mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-26 13:15:21 -04:00
precommit: Check copyright banner in LICENSE files
This commit is contained in:
parent
86b6673cdf
commit
ffbd2cdb7f
1 changed files with 2 additions and 0 deletions
|
|
@ -170,6 +170,8 @@ def check_file(path: pathlib.Path) -> typing.List[str]:
|
|||
warnings += [f"{path}: Copyright banner malformed"]
|
||||
if fn_ext in C_EXTENSIONS and not content.startswith(BANNER_C.format(year, spdx)):
|
||||
warnings += [f"{path}: Copyright banner malformed"]
|
||||
if path.name == "LICENSE" and bsd_licensed and f"2000-{year}" not in content:
|
||||
warnings += [f"{path}: Copyright banner malformed"]
|
||||
|
||||
# check shebang
|
||||
PY_SHEBANG = "#!/usr/bin/env python3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue