Skip to content
Snippets Groups Projects
Commit 0c3af7cc authored by Moul's avatar Moul
Browse files

[enh] #364: Introduce insert-license pre-commit-hook

license-header.txt sample
parent dcd372b3
No related branches found
No related tags found
No related merge requests found
...@@ -15,3 +15,11 @@ repos: ...@@ -15,3 +15,11 @@ repos:
args: args:
- "--server" - "--server"
- "https://git.duniter.org" - "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
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/>.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment