From 03aa991576a676e9a38ed01acf1bbc24115b19f2 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Fri, 24 Feb 2023 23:54:05 +0000 Subject: [PATCH] feat: Add pre-commit.com hook config. This allows easily using addlicense with pre-commit hooks by adding e.g. ``` - repo: https://github.com/google/addlicense rev: hooks: - id: addlicense ``` to their `.pre-commit-config.yaml` file. --- .pre-commit-hooks.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..51965b5 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,5 @@ +- id: addlicense + name: Add copyright headers + entry: addlicense + language: golang + types: [text]