mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
deps: update pre-commit hook psf/black-pre-commit-mirror to v24 (#443)
[![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 | major | `23.12.1` -> `24.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>psf/black-pre-commit-mirror (psf/black-pre-commit-mirror)</summary> ### [`v24.1.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0) [Compare Source](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
ec80865b7f
commit
c8c32f58f5
3 changed files with 17 additions and 13 deletions
|
@ -39,7 +39,7 @@ repos:
|
|||
- id: isort
|
||||
|
||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||
rev: 23.12.1
|
||||
rev: 24.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
|
|
|
@ -151,12 +151,14 @@ class AnsibleHCloudIsoInfo(AnsibleHCloud):
|
|||
"deprecated": (
|
||||
iso_info.deprecation.unavailable_after if iso_info.deprecation is not None else None
|
||||
),
|
||||
"deprecation": {
|
||||
"announced": iso_info.deprecation.announced.isoformat(),
|
||||
"unavailable_after": iso_info.deprecation.unavailable_after.isoformat(),
|
||||
}
|
||||
if iso_info.deprecation is not None
|
||||
else None,
|
||||
"deprecation": (
|
||||
{
|
||||
"announced": iso_info.deprecation.announced.isoformat(),
|
||||
"unavailable_after": iso_info.deprecation.unavailable_after.isoformat(),
|
||||
}
|
||||
if iso_info.deprecation is not None
|
||||
else None
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -153,12 +153,14 @@ class AnsibleHCloudServerTypeInfo(AnsibleHCloud):
|
|||
"cpu_type": to_native(server_type.cpu_type),
|
||||
"architecture": to_native(server_type.architecture),
|
||||
"included_traffic": server_type.included_traffic,
|
||||
"deprecation": {
|
||||
"announced": server_type.deprecation.announced.isoformat(),
|
||||
"unavailable_after": server_type.deprecation.unavailable_after.isoformat(),
|
||||
}
|
||||
if server_type.deprecation is not None
|
||||
else None,
|
||||
"deprecation": (
|
||||
{
|
||||
"announced": server_type.deprecation.announced.isoformat(),
|
||||
"unavailable_after": server_type.deprecation.unavailable_after.isoformat(),
|
||||
}
|
||||
if server_type.deprecation is not None
|
||||
else None
|
||||
),
|
||||
}
|
||||
)
|
||||
return tmp
|
||||
|
|
Loading…
Reference in a new issue