-
Notifications
You must be signed in to change notification settings - Fork 311
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# https://pre-commit.com/
# Before first use: `pre-commit install`
# To run: `pre-commit run --all-files`
# To update: `pre-commit autoupdate`
fail_fast: false
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: '(^(docs|data)/|\.md$)'
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=1500']
- id: check-ast
- id: debug-statements
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
args: ["--line-length=120"]
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
args: ["--max-line-length=120", "--extend-ignore=E203,E266,F403,F405,E402"]
- repo: local
hooks:
- id: validate-deployment-configs
name: validate deployment configs
entry: python ci/scripts/validate_deployment_configs.py
language: system
files: (docker-compose\.yaml|helm/values\.yaml)
pass_filenames: false