From 4cbbd9c60001e80669f52e8e31f7be6da4098613 Mon Sep 17 00:00:00 2001 From: Tom Atkinson Date: Tue, 27 Feb 2024 22:03:08 +0000 Subject: [PATCH] Support copyright check with pre-commit --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f09b5b436..db472d916 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,9 +4,19 @@ repos: hooks: - id: check-yaml - id: end-of-file-fixer + - id: check-added-large-files - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-clang-format rev: 'v15.0.7' hooks: - id: clang-format 'types_or': [c++, c] +- repo: local + hooks: + - id: copyright-check + name: copyright-check + entry: ./scripts/copyright.py main --fix + language: script + types: [python] + pass_filenames: false + always_run: true