diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f111f065d3a6531df0615dfd85c6b7919ab316c6..541b40950c638456b6d51e61293ddef330cd7100 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 - include: - project: 'lhcb-rta/reference-update-bot' file: 'templates/ref-bot-ci-trigger-template.yml' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1293f91ea8f8f2d8d464debbd293c813682e68ee..b7ad335a158c2834fdc03b74c0a07a6bf154f093 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,3 +34,8 @@ repos: args: [ --fix ] # Run the formatter. - id: ruff-format +- repo: "https://gitlab.cern.ch/lhcb-core/LbDevTools.git" + rev: 2.1.4 + hooks: + - id: lb-add-copyright + exclude: "^lhcbproject.yml$"