Added license header pre-commit check

This commit is contained in:
Stewart Henderson 2019-11-12 18:27:51 +00:00 коммит произвёл Marty Ballard
Родитель 31c60b6179
Коммит cace69cd06
2 изменённых файлов: 28 добавлений и 1 удалений

Просмотреть файл

@ -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

3
etc/license-header Normal file
Просмотреть файл

@ -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/.