Skip to content

Support using lb-check-copyright & lb-add-copyright with pre-commit

pre-commit: https://pre-commit.com

example use in CI: https://gitlab.cern.ch/lhcb-charm/charm-production-run-3/-/jobs/16440475

configs: https://gitlab.cern.ch/lhcb-charm/charm-production-run-3/-/tree/roneil/ci2

cc @cburr you might be interested in this

Edit:

the check can be added to .pre-commit-config.yaml as so:

  - repo: https://gitlab.cern.ch/roneil/LbDevTools
    rev: roneil/precommithooks
    hooks:
      - id: lb-add-copyright

pre-commit will run lb-add-copyright which blocks a commit and automatically adds missing copyright messages if they were missing

Edited by Ryunosuke O'Neil

Merge request reports