-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
159 lines (158 loc) · 4.16 KB
/
.pre-commit-config.yaml
File metadata and controls
159 lines (158 loc) · 4.16 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
ci:
autoupdate_schedule: quarterly
skip:
- renovate-config-validator
default_language_version:
python: python3.11
exclude: "(?x)^(\n _readthedocs|\n .tox\n)$\n"
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.96.0
hooks:
- id: renovate-config-validator
alias: renovate
args:
- --strict
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
entry:
env CI=1 bash -c "prettier --list-different . || ec=$? && prettier
--loglevel=error --write . && exit $ec"
pass_filenames: false
args: []
additional_dependencies:
- prettier
- prettier-plugin-toml
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.4
hooks:
- id: toml-sort-fix
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.7.1
hooks:
- id: tox-ini-fmt
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.7.0
hooks:
- id: cspell
name: Spell check with cspell
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-added-large-files
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
exclude: "(?x)^\n (\n mkdocs.yml\n )\n$\n"
- id: detect-private-key
- id: check-ast
- id: debug-statements
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.1
hooks:
- id: check-json5
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
exclude:
"(?x)^\n (\n \\.github/ISSUE_TEMPLATE/\\w+|\n docs/(\n faq|\n
\ index|\n )|\n README|\n src/ansible_navigator/data/(help|welcome)\n
\ )\\.md\n$\n"
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args:
- -L
- dout
exclude:
"(?x)^\n (\n tests/fixtures/integration/actions/.*\\.json|\n
\ src/ansible_navigator/data/grammar/.*\\.json\n )\n$\n"
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args:
- --strict
types:
- file
- yaml
- repo: https://github.com/PyCQA/flake8.git
rev: 7.3.0
hooks:
- id: flake8
language_version: python3
additional_dependencies:
- flake8-docstrings
- repo: https://github.com/jsh9/pydoclint
rev: 0.8.3
hooks:
- id: pydoclint
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.4
hooks:
- id: toml-sort-fix
alias: toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff-format
alias: ruff
- id: ruff-check
alias: ruff
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies:
- ansible-core
- jinja2
- libtmux
- pytest
- pytest-mock
- types-backports
- types-docutils
- types-mock
- types-PyYAML
- types-setuptools
- types-typed-ast
- repo: https://github.com/pycqa/pylint.git
rev: v4.0.5
hooks:
- id: pylint
args:
- docs/
- src/
- tests/
additional_dependencies:
- ansible-core
- ansible-runner
- astroid
- dill>=0.3.6
- jinja2
- jsonschema
- libtmux
- mkdocs-gen-files
- onigurumacffi
- pytest
- pytest-mock
- setuptools-scm
pass_filenames: false
- repo: https://github.com/ansible/team-devtools
rev: v26.2.2
hooks:
- id: check-platform-constraints