зеркало из https://github.com/mozilla/subhub.git
Added license header pre-commit check
This commit is contained in:
Родитель
31c60b6179
Коммит
cace69cd06
|
@ -46,8 +46,32 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: python-safety-dependencies-check
|
- id: python-safety-dependencies-check
|
||||||
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
|
||||||
sha: v1.0.3
|
rev: v1.0.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: python-bandit-vulnerability-check
|
- id: python-bandit-vulnerability-check
|
||||||
args: [-l, --recursive, -x, tests, --skip, "B101,B106,B404"]
|
args: [-l, --recursive, -x, tests, --skip, "B101,B106,B404"]
|
||||||
files: .py$
|
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
|
||||||
|
|
|
@ -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/.
|
Загрузка…
Ссылка в новой задаче