-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
68 lines (62 loc) · 1.69 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-json
exclude: .devcontainer/|.vscode/
- id: check-yaml
files: .*\.(yaml|yml)$
args:
- --unsafe
- id: detect-private-key
- id: end-of-file-fixer
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args:
- --safe
- --quiet
files: ^(plugins|tests)/.+\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.5
hooks:
- id: ruff
args:
- --extend-select=E,W,F
- --ignore=E402,E501
files: ^(plugins|tests)/.+\.py$
# - id: ruff-format
# files: ^(plugins|tests)/.+\.py$
- repo: https://github.com/ansible/ansible-lint
rev: v24.12.2
hooks:
- id: ansible-lint
files: tests/integration/.*\.(yaml|yml)$
args:
- --force-color
- -v
- --warn-list=name[missing]
- tests/integration
always_run: false
- repo: https://github.com/ansible-network/collection_prep
rev: 1.1.1
hooks:
- id: update-docs
- repo: local
hooks:
- id: generate-changelog
name: antsibull-changelog
entry: antsibull-changelog generate
language: python
files: 'changelogs/.*'
pass_filenames: false
additional_dependencies:
- antsibull-changelog==0.31.1 # renovate: datasource=pypi