46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
args: ['--allow-multiple-documents']
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.12.1
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 7.1.1
|
|
hooks:
|
|
- id: flake8
|
|
args: ['--max-line-length=88', '--extend-ignore=E203,W503,E402']
|
|
|
|
- repo: https://github.com/RobertCraigie/pyright-python
|
|
rev: v1.1.345
|
|
hooks:
|
|
- id: pyright
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.35.1
|
|
hooks:
|
|
- id: yamllint
|
|
args: [-d, relaxed]
|
|
|
|
# Pre-push: run the full k8s e2e test suite (~3 min).
|
|
# Same script used by CI and release validation.
|
|
- repo: local
|
|
hooks:
|
|
- id: k8s-deploy-test
|
|
name: k8s deploy e2e test
|
|
entry: tests/k8s-deploy/run-deploy-test.sh
|
|
language: system
|
|
stages: [pre-push]
|
|
pass_filenames: false
|