From 02c83ca12ebad92b142500bafd34697c2f003aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Avil=C3=A9s?= Date: Tue, 19 Sep 2023 18:20:57 +0200 Subject: [PATCH] TMP --- .github/workflows/linting.yaml | 3 ++- src/unbeheader/__init__.py | 3 --- src/unbeheader/headers.py | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index b068d91..9795cd3 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -52,6 +52,7 @@ jobs: run: | echo "::add-matcher::.github/matchers/ruff.json" echo "::add-matcher::.github/matchers/unbehead.json" - poetry run -- make lint + # poetry run -- make lint + poetry run -- ruff check . echo "::remove-matcher owner=unbehead::" echo "::remove-matcher owner=ruff::" 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():