ansible-collection-hetzner-.../.pre-commit-config.yaml

86 lines
2.2 KiB
YAML
Raw Normal View History

---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^plugins/module_utils/vendor/hcloud/.*$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
deps: update pre-commit hook pre-commit/pre-commit-hooks to v4.5.0 (#352) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pre-commit/pre-commit-hooks](https://togithub.com/pre-commit/pre-commit-hooks) | repository | minor | `v4.4.0` -> `v4.5.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)</summary> ### [`v4.5.0`](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-09 09:48:46 +00:00
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
deps: update pre-commit hook pre-commit/mirrors-prettier to v3.1.0 (#387) [![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pre-commit/mirrors-prettier](https://togithub.com/pre-commit/mirrors-prettier) | repository | minor | `v3.0.3` -> `v3.1.0` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>pre-commit/mirrors-prettier (pre-commit/mirrors-prettier)</summary> ### [`v3.1.0`](https://togithub.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) [Compare Source](https://togithub.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 11:29:49 +00:00
rev: v3.1.0
hooks:
- id: prettier
files: \.(md|ya?ml)$
exclude: ^changelogs/(dev-changelog\.md|changelog\.yaml)$
- repo: https://github.com/asottile/pyupgrade
deps: update pre-commit hook asottile/pyupgrade to v3.15.0 (#351) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [asottile/pyupgrade](https://togithub.com/asottile/pyupgrade) | repository | minor | `v3.14.0` -> `v3.15.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>asottile/pyupgrade (asottile/pyupgrade)</summary> ### [`v3.15.0`](https://togithub.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0) [Compare Source](https://togithub.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-09 09:49:08 +00:00
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
deps: update pre-commit hook pycqa/isort to v5.13.0 (#413) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pycqa/isort](https://togithub.com/pycqa/isort) | repository | minor | `5.12.0` -> `5.13.0` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>pycqa/isort (pycqa/isort)</summary> ### [`v5.13.0`](https://togithub.com/pycqa/isort/blob/HEAD/CHANGELOG.md#5130-December-9-2023) [Compare Source](https://togithub.com/pycqa/isort/compare/5.12.0...5.13.0) - Cleanup deprecated extras ([#&#8203;2089](https://togithub.com/pycqa/isort/issues/2089)) [@&#8203;staticdev](https://togithub.com/staticdev) - Fixed [#&#8203;1989](https://togithub.com/pycqa/isort/issues/1989): settings lookup when working in stream based mode - Fixed 80 line length for wemake linter ([#&#8203;2183](https://togithub.com/pycqa/isort/issues/2183)) [@&#8203;skatromb](https://togithub.com/skatromb) - Add support for Python 3.12 ([#&#8203;2175](https://togithub.com/pycqa/isort/issues/2175)) [@&#8203;hugovk](https://togithub.com/hugovk) - Fixed: add newest version to pre-commit docs ([#&#8203;2190](https://togithub.com/pycqa/isort/issues/2190)) [@&#8203;AzulGarza](https://togithub.com/AzulGarza) - Fixed assertions in test_git_hook ([#&#8203;2196](https://togithub.com/pycqa/isort/issues/2196)) [@&#8203;mgorny](https://togithub.com/mgorny) - Removed check for include_trailing_comma for the Hanging Indent wrap mode ([#&#8203;2192](https://togithub.com/pycqa/isort/issues/2192)) [@&#8203;bp72](https://togithub.com/bp72) - Use the standard library tomllib on sufficiently new python ([#&#8203;2202](https://togithub.com/pycqa/isort/issues/2202)) [@&#8203;eli-schwartz](https://togithub.com/eli-schwartz) - Update pre-commit.md version number ([#&#8203;2197](https://togithub.com/pycqa/isort/issues/2197)) [@&#8203;nicobako](https://togithub.com/nicobako) - doc: Update black_compatibility.md ([#&#8203;2177](https://togithub.com/pycqa/isort/issues/2177)) [@&#8203;JSS95](https://togithub.com/JSS95) - Fixed safety sept 2023 ([#&#8203;2178](https://togithub.com/pycqa/isort/issues/2178)) [@&#8203;staticdev](https://togithub.com/staticdev) - docs: fix black profile documentation ([#&#8203;2163](https://togithub.com/pycqa/isort/issues/2163)) [@&#8203;nijel](https://togithub.com/nijel) - Fixed typo: indended -> indented ([#&#8203;2161](https://togithub.com/pycqa/isort/issues/2161)) [@&#8203;vadimkerr](https://togithub.com/vadimkerr) - Docs(configuration/options.md): fix missing trailing spaces for hard linebreak ([#&#8203;2157](https://togithub.com/pycqa/isort/issues/2157)) [@&#8203;JoeyTeng](https://togithub.com/JoeyTeng) - Update pre-commit.md ([#&#8203;2148](https://togithub.com/pycqa/isort/issues/2148)) [@&#8203;godiard](https://togithub.com/godiard) - chore: move configurations to pyproject.toml ([#&#8203;2115](https://togithub.com/pycqa/isort/issues/2115)) [@&#8203;SauravMaheshkar](https://togithub.com/SauravMaheshkar) - Fixed typo in README ([#&#8203;2112](https://togithub.com/pycqa/isort/issues/2112)) [@&#8203;stefmolin](https://togithub.com/stefmolin) - Update version in pre-commit setup to avoid installation issue with poetry ([#&#8203;2103](https://togithub.com/pycqa/isort/issues/2103)) [@&#8203;stefmolin](https://togithub.com/stefmolin) - Skip .pytype directory by default. ([#&#8203;2098](https://togithub.com/pycqa/isort/issues/2098)) [@&#8203;manueljacob](https://togithub.com/manueljacob) - Fixed a tip block styling in the Config Files section ([#&#8203;2097](https://togithub.com/pycqa/isort/issues/2097)) [@&#8203;Klavionik](https://togithub.com/Klavionik) - Do not cache configuration files ([#&#8203;1995](https://togithub.com/pycqa/isort/issues/1995)) [@&#8203;kaste](https://togithub.com/kaste) - Derive settings_path from --filename ([#&#8203;1992](https://togithub.com/pycqa/isort/issues/1992)) [@&#8203;kaste](https://togithub.com/kaste) - Fixed year of version 5.12.0 in CHANGELOG.md ([#&#8203;2082](https://togithub.com/pycqa/isort/issues/2082)) [@&#8203;DjLegolas](https://togithub.com/DjLegolas) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 10:54:36 +00:00
rev: 5.13.0
hooks:
- id: isort
2023-10-09 11:42:43 +00:00
- repo: https://github.com/psf/black-pre-commit-mirror
deps: update pre-commit hook psf/black-pre-commit-mirror to v23.11.0 (#386) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [psf/black-pre-commit-mirror](https://togithub.com/psf/black-pre-commit-mirror) | repository | minor | `23.10.1` -> `23.11.0` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>psf/black-pre-commit-mirror (psf/black-pre-commit-mirror)</summary> ### [`v23.11.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.10.1...23.11.0) [Compare Source](https://togithub.com/psf/black-pre-commit-mirror/compare/23.10.1...23.11.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 08:18:57 +00:00
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/ansible-community/antsibull-changelog
rev: 0.23.0
hooks:
- id: antsibull-changelog-lint
- id: antsibull-changelog-lint-changelog-yaml
- repo: https://github.com/ansible/ansible-lint
deps: update pre-commit hook ansible/ansible-lint to v6.22.1 (#407) [![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [ansible/ansible-lint](https://togithub.com/ansible/ansible-lint) | repository | patch | `v6.22.0` -> `v6.22.1` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://togithub.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>ansible/ansible-lint (ansible/ansible-lint)</summary> ### [`v6.22.1`](https://togithub.com/ansible/ansible-lint/releases/tag/v6.22.1) [Compare Source](https://togithub.com/ansible/ansible-lint/compare/v6.22.0...v6.22.1) #### Bugfixes - Look for ansible binary in the same path as we are ([#&#8203;3903](https://togithub.com/ansible/ansible-lint/issues/3903)) [@&#8203;FliegenKLATSCH](https://togithub.com/FliegenKLATSCH) - Avoid stacktrace with broken ansible.cfg files ([#&#8203;3916](https://togithub.com/ansible/ansible-lint/issues/3916)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Avoid jinja\[invalid] with ansible.builtin.mandatory filter ([#&#8203;3917](https://togithub.com/ansible/ansible-lint/issues/3917)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Remove support for deprecated include ([#&#8203;3722](https://togithub.com/ansible/ansible-lint/issues/3722)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Fix use of versioned github action ([#&#8203;3762](https://togithub.com/ansible/ansible-lint/issues/3762)) [@&#8203;karl-johan-grahn](https://togithub.com/karl-johan-grahn) - Fix few URLs in README.md ([#&#8203;3915](https://togithub.com/ansible/ansible-lint/issues/3915)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Correct some usage examples for `package_latest` ([#&#8203;3914](https://togithub.com/ansible/ansible-lint/issues/3914)) [@&#8203;pablomh](https://togithub.com/pablomh) - Add option to allow running with missing plugins and collection dependencies ([#&#8203;3913](https://togithub.com/ansible/ansible-lint/issues/3913)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Avoid warnings from loading of deprecated modules ([#&#8203;3715](https://togithub.com/ansible/ansible-lint/issues/3715)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Log ignored exception details to debug log ([#&#8203;3900](https://togithub.com/ansible/ansible-lint/issues/3900)) [@&#8203;bluecmd](https://togithub.com/bluecmd) - GitHub Action: properly respect the `working_directory` argument ([#&#8203;3905](https://togithub.com/ansible/ansible-lint/issues/3905)) [@&#8203;ptoscano](https://togithub.com/ptoscano) - Allow to set `max_fail_percentage` as templated integer ([#&#8203;3901](https://togithub.com/ansible/ansible-lint/issues/3901)) [@&#8203;rebtoor](https://togithub.com/rebtoor) - Fix setuptools-scm versioning ([#&#8203;3887](https://togithub.com/ansible/ansible-lint/issues/3887)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) - Add Fedora 39 to `meta.json` ([#&#8203;3893](https://togithub.com/ansible/ansible-lint/issues/3893)) [@&#8203;jsf9k](https://togithub.com/jsf9k) - Use python 3.10 as primary version target ([#&#8203;3886](https://togithub.com/ansible/ansible-lint/issues/3886)) [@&#8203;ssbarnea](https://togithub.com/ssbarnea) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 14:59:55 +00:00
rev: v6.22.1
hooks:
- id: ansible-lint
name: ansible-lint
args: [--offline]
additional_dependencies:
- ansible-core>=2.13.3
- netaddr
- repo: local
hooks:
- id: shfmt
name: shfmt
description: Format shell scripts with shfmt
language: golang
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.7.0]
entry: shfmt -i 2 -ci -sr -kp -w
types: [shell]
- repo: https://github.com/shellcheck-py/shellcheck-py
2023-10-09 11:42:43 +00:00
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: local
hooks:
- id: check-integration-test-files
name: check integration test files
description: Ensure the integration test files are in sync
language: system
entry: scripts/integration-test-files.sh
pass_filenames: false
files: ^(scripts/integration-test-files.sh$|tests/integration)