-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (80 loc) · 2.15 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
74
75
76
77
78
79
80
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- repo: local
hooks:
- id: ruff
name: ruff check
entry: ruff check
language: system
types: [file, python]
- id: ruff-format
name: ruff format
entry: ruff format
args: [--line-length=120]
language: system
types: [file, python]
- id: isort
name: isort
entry: isort
language: system
types: [ file, python ]
args: [ --line-length=120,
--multi-line=3,
--trailing-comma,
--ensure-newline-before-comments,
--use-parentheses]
- id: mypy
name: mypy
entry: mypy
args: [ --strict,
--ignore-missing-imports ]
language: system
types: [ python ]
- id: tomlcheck
name: tomlcheck
description: Checks TOML files for valid syntax.
entry: tomlcheck
language: system
files: '.toml$'
- id: ansible-lint
name: ansible-lint
entry: ansible-lint
language: system
types: [ file, yaml ]
- id: yamllint
name: yamllint
entry: yamllint
language: system
types: [ file, yaml ]
- id: mdformat
name: mdformat
entry: mdformat
language: system
types: [ file, markdown ]
args: [--wrap=120]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt-docker
name: shfmt
types: [ file, bash, shell ]
args: [ -i=2,
-ci ]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
name: shellcheck
types: [ file, bash, shell ]