diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 048c67c3..8626ec6b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,13 @@ repos: args: [--autofix, --indent, '2'] - id: pretty-format-yaml args: [--autofix, --indent, '2'] +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - id: insert-license + types: [python] + args: [--license-filepath=docs/license_header.txt] + exclude: docs - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.11 hooks: diff --git a/docs/license_header.txt b/docs/license_header.txt new file mode 100644 index 00000000..4415331c --- /dev/null +++ b/docs/license_header.txt @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 PANGAEA (https://www.pangaea.de/) + +SPDX-License-Identifier: MIT