diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c06d4f3628322f76b701f264c9eb9b0678b85cf2..701a77c7b497dfe79a72470fb01265da8d2ee22c 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 0000000000000000000000000000000000000000..d1b351ecb240536dc57f6c0cc55ecf0ff2fa2630 --- /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/>.