From a89463d351619d009e27174aeab9989be030c27f Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Wed, 19 Feb 2025 23:13:54 +0100 Subject: [PATCH] [check-sources] removed filepath from license header, added link to repo. --- utils/check-sources.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/check-sources.py b/utils/check-sources.py index 986f5e01..433c9d62 100755 --- a/utils/check-sources.py +++ b/utils/check-sources.py @@ -23,9 +23,8 @@ def check_license(text, filepath, fix=False): if fix: is_test = (os.path.sep + 'test' + os.path.sep) in filepath text = '''/** - * ''' + filepath + ''' - * - * This file is part of the traintastic ''' + ('test suite' if is_test else 'source code') + '''. + * This file is part of Traintastic, + * see . * * Copyright (C) ''' + str(datetime.datetime.now().year) + ''' Reinder Feenstra *