forked from ansible-community/molecule-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (77 loc) · 2.18 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (77 loc) · 2.18 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
---
ci:
# We rely on renovate to update it but there is no way to fully disable it
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
skip:
- ansible-lint
- renovate-config-validator # container limits
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.98.0
hooks:
- id: renovate-config-validator
alias: renovate
args: [--strict]
- repo: https://github.com/biomejs/pre-commit
rev: "v2.2.3"
hooks:
- id: biome-check
name: biome
alias: biome
args: [--unsafe]
- repo: https://github.com/PyCQA/doc8.git
rev: v2.0.0
hooks:
- id: doc8
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.2.0
hooks:
- id: cspell
name: cspell
# entry: codespell --relative
args: [--relative, --no-progress, --no-summary]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.2.1; python_version<'3.11'"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
language_version: python3
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
hooks:
- id: toml-sort-fix
alias: toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
hooks:
- id: ruff-format
alias: ruff
- id: ruff-check
args: ["--fix"]
alias: ruff
- repo: https://github.com/ansible/ansible-lint
rev: v25.8.2
hooks:
- id: ansible-lint
entry: env ANSIBLE_ROLES_PATH="$ANSIBLE_ROLES_PATH:test/roles" ansible-lint
args: [--fix]