-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
106 lines (96 loc) · 2.91 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
##### MOCULL AUTOGENERATED ### DO NOT EDIT #####
---
# 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-json
- id: pretty-format-json
args: [--autofix]
- id: check-yaml
- id: check-toml
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
- id: destroyed-symlinks
- id: detect-private-key
- id: forbid-submodules
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: shell-fmt-docker
args:
- -w
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
- repo: https://github.com/ansible/ansible-lint
# put latest release tag from
# https://github.com/ansible-community/ansible-lint/releases/
rev: v24.6.1
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
args: [--fix, --format, pep8]
additional_dependencies:
- jmespath
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
# See
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html
args: [--profile, black, --filter-files]
# This mirror is about 2x faster because it is compiled with mypyc.
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
args: [--line-length=88]
language_version: python3.12
# To ignore these, use `# noqa: E123` at the end of the line.
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
# See https://github.com/PyCQA/pycodestyle/issues/373
#
# We are ignoring E501 because black already takes care of line length,
# and Flake8 is trigger happy.
args:
- --max-line-length=88
- --extend-ignore=E203
- --extend-ignore=E501
# To ignore these, use `# nosec` at the end of the line.
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
hooks:
- id: bandit
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-check-blanket-type-ignore
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-setuptools
- types-paramiko
- types-toml
##### END MOCULL AUTOGENERATED ### DO NOT EDIT #####