diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47fe30ad7ce4c27c1d12f386b719909f4c7953d2..99089cfb77651b8e1e22106a9b62eaa3c8199889 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,3 +3,11 @@ repos: rev: 21.5b0 hooks: - id: black +- 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..31d98e9a480400da2eec8a7b1ce54c829ca13c78 --- /dev/null +++ b/license_header.txt @@ -0,0 +1,14 @@ +Copyright 2014-2021 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>.