forked from astronomer/astronomer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
73 lines (73 loc) · 2.12 KB
/
.pre-commit-config.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
exclude: '(venv|\.vscode)' # regex
repos:
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
hooks:
- id: docformatter
- repo: local
hooks:
- id: circle-config-yaml
name: Checks for consistency between config.yml and config.yml.j2
language: python
files: "config.yml$|config.yml.j2|generate_circleci_config.py$|values.yaml$"
entry: .circleci/generate_circleci_config.py
additional_dependencies: ["jinja2"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
args: ["-L", "AKS,aks"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
hooks:
- id: remove-tabs
exclude_types: [makefile, binary]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
hooks:
- id: pyupgrade
args: ["--py39-plus"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-xml
- id: check-yaml
args: ["--allow-multiple-documents"]
exclude: 'charts|templates\/.*\.yaml'
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: file-contents-sorter
args: ["--ignore-case", "--unique"]
files: '^\.(git|helm)ignore$'
- id: mixed-line-ending
args: ["--fix=lf"]
- id: requirements-txt-fixer
args: [
"requirements/chart-tests.in",
"requirements/chart-tests.txt",
"requirements/functional-tests.in",
"requirements/functional-tests.txt",
]
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- --ignore=E501,W503
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck