diff --git a/src/unbeheader/__init__.py b/src/unbeheader/__init__.py index 9014008..e50dbbf 100644 --- a/src/unbeheader/__init__.py +++ b/src/unbeheader/__init__.py @@ -1,6 +1,3 @@ -# This file is part of Unbeheader. -# Copyright (C) CERN & UNCONVENTIONAL - import re # Dictionary listing the files for which to change the header. diff --git a/src/unbeheader/headers.py b/src/unbeheader/headers.py index 4e5c317..0f92863 100644 --- a/src/unbeheader/headers.py +++ b/src/unbeheader/headers.py @@ -15,6 +15,7 @@ def update_header(file_path: Path, year: int, check: bool = False) -> bool: """Update the header of a file.""" + config = get_config(file_path, year) ext = file_path.suffix[1:] if ext not in SUPPORTED_FILES or not file_path.is_file():