Debian Codegraph @

ansible_collections/hetzner/hcloud/.pre-commit-config.yaml

raw
1 ---
2 # See https://pre-commit.com for more information
3 # See https://pre-commit.com/hooks.html for more hooks
4 exclude: ^plugins/module_utils/_vendor/hcloud/.*$
5 repos:
6 - repo: https://github.com/pre-commit/pre-commit-hooks
7 rev: v6.0.0
8 hooks:
9 - id: check-added-large-files
10 - id: check-case-conflict
11 - id: check-symlinks
12 - id: destroyed-symlinks
13
14 - id: check-json
15 - id: check-yaml
16 - id: check-toml
17
18 - id: check-merge-conflict
19 - id: end-of-file-fixer
20 - id: mixed-line-ending
21 - id: trailing-whitespace
22
23 - repo: https://github.com/pre-commit/mirrors-prettier
24 rev: v3.1.0
25 hooks:
26 - id: prettier
27 files: \.(md|ya?ml)$
28 exclude: ^changelogs/(dev-changelog\.md|changelog\.yaml)$
29
30 - repo: https://github.com/asottile/pyupgrade
31 rev: v3.21.2
32 hooks:
33 - id: pyupgrade
34 args: [--py310-plus]
35
36 - repo: https://github.com/pycqa/isort
37 rev: 8.0.1
38 hooks:
39 - id: isort
40
41 - repo: https://github.com/psf/black-pre-commit-mirror
42 rev: 26.3.1
43 hooks:
44 - id: black
45
46 - repo: https://github.com/ansible-community/antsibull-changelog
47 rev: 0.35.0
48 hooks:
49 - id: antsibull-changelog-lint
50 - id: antsibull-changelog-lint-changelog-yaml
51 args: [--strict]
52
53 - repo: local
54 hooks:
55 - id: shfmt
56 name: shfmt
57 description: Format shell scripts with shfmt
58 language: golang
59 additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
60 entry: shfmt -i 2 -ci -sr -kp -w
61 types: [shell]
62
63 - repo: https://github.com/shellcheck-py/shellcheck-py
64 rev: v0.11.0.1
65 hooks:
66 - id: shellcheck
67
68 - repo: local
69 hooks:
70 - id: check-integration-test-files
71 name: check integration test files
72 description: Ensure the integration test files are in sync
73 language: system
74 entry: scripts/integration-test-files.sh
75 pass_filenames: false
76 files: ^(scripts/integration-test-files.sh$|tests/integration)