From 0c3af7cc2eec0bb11234d28dcba2fb2daf992e6a Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 22 May 2021 17:24:15 +0200 Subject: [PATCH] [enh] #364: Introduce insert-license pre-commit-hook license-header.txt sample --- .pre-commit-config.yaml | 8 ++++++++ license_header.txt | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 license_header.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c06d4f36..701a77c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,11 @@ repos: args: - "--server" - "https://git.duniter.org" +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.1.10 + hooks: + - id: insert-license + files: \.py$ + args: + - --license-filepath + - license_header.txt diff --git a/license_header.txt b/license_header.txt new file mode 100644 index 00000000..d1b351ec --- /dev/null +++ b/license_header.txt @@ -0,0 +1,14 @@ +Copyright 2016-2021 Maƫl Azimi <m.a@moul.re> + +Silkaj is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Silkaj is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with Silkaj. If not, see <https://www.gnu.org/licenses/>. -- GitLab