-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
68 lines (61 loc) · 1.83 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
---
minimum_pre_commit_version: 3.3.0
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-illegal-windows-names
- id: check-json
- id: check-toml
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
args: [ --fix ]
language: system
types: [python]
stages: [pre-commit]
# Run the formatter.
- id: ruff-format
types_or: [ python ]
stages: [pre-commit]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.24
hooks:
- id: shellcheck
entry: C:\\Windows\\System32\\wsl.exe --exec bash -c "find . -type f \( -name '*.sh' -o -name '*.bash' \) ! -name 'get-helm-3.bash' -print0 | xargs -0 printf '%q ' | xargs shellcheck --color=never"
files: \.bash$
- id: markdown-link-check
language: system
entry: markdown-link-check
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
args: ['--config', '.markdownlint.yaml']
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.389
# hooks:
# - id: pyright
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
]
stages: [pre-push]