From 64a6e2ead2a9b7ae9a3d8e76e6d42e0fe74dd216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Sun, 1 Jan 2023 13:10:18 +0100 Subject: [PATCH] Update cp2k_info.F to 2023 --- src/cp2k_info.F | 4 ++-- tools/precommit/check_file_properties.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cp2k_info.F b/src/cp2k_info.F index 56113392d5..6ed7e1ce0b 100644 --- a/src/cp2k_info.F +++ b/src/cp2k_info.F @@ -37,8 +37,8 @@ MODULE cp2k_info CHARACTER(LEN=*), PARAMETER :: compile_revision = "unknown" #endif - CHARACTER(LEN=*), PARAMETER :: cp2k_version = "CP2K version 2022.1 (Development Version)" - CHARACTER(LEN=*), PARAMETER :: cp2k_year = "2022" + CHARACTER(LEN=*), PARAMETER :: cp2k_version = "CP2K version 2023.1 (Development Version)" + CHARACTER(LEN=*), PARAMETER :: cp2k_year = "2023" CHARACTER(LEN=*), PARAMETER :: cp2k_home = "https://www.cp2k.org/" ! compile time information diff --git a/tools/precommit/check_file_properties.py b/tools/precommit/check_file_properties.py index 1bcf3ad4f1..49f2d14419 100755 --- a/tools/precommit/check_file_properties.py +++ b/tools/precommit/check_file_properties.py @@ -172,6 +172,8 @@ def check_file(path: pathlib.Path) -> typing.List[str]: 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"] + if path.name == "cp2k_info.F" and f'cp2k_year = "{year}"' not in content: + warnings += [f"{path}: Wrong year."] # check shebang PY_SHEBANG = "#!/usr/bin/env python3"