diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2a0360..5ae94a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,8 +46,32 @@ repos: hooks: - id: python-safety-dependencies-check - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit - sha: v1.0.3 + rev: v1.0.3 hooks: - id: python-bandit-vulnerability-check args: [-l, --recursive, -x, tests, --skip, "B101,B106,B404"] files: .py$ +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.1.7 + hooks: + - id: insert-license + files: \.py + args: + - --license-filepath + - etc/license-header + - --comment-style + - id: insert-license + files: \.yml + args: + - --license-filepath + - etc/license-header + - id: insert-license + files: \.txt + args: + - --license-filepath + - etc/license-header + - id: insert-license + files: \.ini + args: + - --license-filepath + - etc/license-header diff --git a/etc/license-header b/etc/license-header new file mode 100644 index 0000000..b0a9688 --- /dev/null +++ b/etc/license-header @@ -0,0 +1,3 @@ +This Source Code Form is subject to the terms of the Mozilla Public +License, v. 2.0. If a copy of the MPL was not distributed with this +file, You can obtain one at https://mozilla.org/MPL/2.0/.