diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 143bdf5d90702bebe001f7b6aabc7855fe1293b9..b5647be2724070a6e6ee9adb2c8d05d29e097f25 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,10 +50,3 @@ pre-commit-checks: - 0001-pre-commit-fixes.patch when: on_failure expire_in: 1 week - -check-copyright: - image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7 - script: - - git fetch origin $TARGET_BRANCH - - curl -o lb-check-copyright "https://gitlab.cern.ch/lhcb-core/LbDevTools/-/raw/master/LbDevTools/SourceTools.py?inline=false" - - python lb-check-copyright FETCH_HEAD diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 655f1b2bda0bf7114707c85e464fa7083ab0f878..c777dc0968970fb904d811525c6c7d5381ed7a1c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,7 @@ repos: rev: 6.0.0 hooks: - id: flake8 +- repo: https://gitlab.cern.ch/lhcb-core/LbDevTools.git + rev: 2.0.38 + hooks: + - id: lb-add-copyright