From 37de5638f4e2b4a32571d75c615705d0c85c048a Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Tue, 3 Jun 2025 12:28:16 +0200 Subject: [PATCH] Move pre-commit check for copyright notice --- .gitlab-ci.yml | 6 ------ .pre-commit-config.yaml | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1077135c..0b4242922 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,12 +11,6 @@ variables: TARGET_BRANCH: master -check-copyright: - image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7 - script: - - curl -o lb-check-copyright "https://gitlab.cern.ch/lhcb-core/LbDevTools/raw/master/LbDevTools/SourceTools.py?inline=false" - - python lb-check-copyright origin/${TARGET_BRANCH} --exclude lhcbproject.yml - check-formatting: tags: - cvmfs diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37a9afe5d..3bae8a689 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,8 @@ repos: types_or: [python, yaml] exclude: ".pre-commit-config.yaml" entry: 'eoslhcb.cern.ch//eos/lhcb/' +- repo: "https://gitlab.cern.ch/lhcb-core/LbDevTools.git" + rev: 2.1.4 + hooks: + - id: lb-add-copyright + exclude: "^lhcbproject.yml$" -- GitLab