Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeGak committed Sep 19, 2023
1 parent d5158b5 commit 02c83ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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::"
3 changes: 0 additions & 3 deletions src/unbeheader/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/unbeheader/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 02c83ca

Please sign in to comment.