58 строки
1.3 KiB
YAML
58 строки
1.3 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-json
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: pretty-format-json
|
|
args: [
|
|
'--autofix',
|
|
'--indent', '4',
|
|
'--no-sort-keys',
|
|
]
|
|
exclude: "bin/k8s/secret.json"
|
|
- id: trailing-whitespace
|
|
- repo: local
|
|
hooks:
|
|
- id: lint
|
|
name: lint
|
|
entry: bin/lint.sh lint
|
|
language: script
|
|
types: [python]
|
|
- repo: local
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy
|
|
entry: bin/lint.sh mypy
|
|
language: script
|
|
types: [python]
|
|
- repo: local
|
|
hooks:
|
|
- id: bandit
|
|
name: bandit
|
|
entry: bin/lint.sh bandit
|
|
language: script
|
|
types: [python]
|
|
- repo: local
|
|
hooks:
|
|
- id: detect-secrets
|
|
name: detect-secrets
|
|
entry: bin/lint.sh detect-secrets
|
|
language: script
|
|
- repo: local
|
|
hooks:
|
|
- id: format
|
|
name: format
|
|
entry: bin/lint.sh format
|
|
language: script
|
|
types: [python]
|
|
- repo: local
|
|
hooks:
|
|
- id: yamllint
|
|
name: yamllint
|
|
entry: bin/lint.sh yamllint
|
|
language: script
|
|
types: [yaml]
|