From 977c3173c8cf3acdf5934ff195c43dce33c477da Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 09:18:18 +0100 Subject: [PATCH] chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v26 (#790) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [psf/black-pre-commit-mirror](https://redirect.github.com/psf/black-pre-commit-mirror) | repository | major | `25.12.0` → `26.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://redirect.github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes
psf/black-pre-commit-mirror (psf/black-pre-commit-mirror) ### [`v26.1.0`](https://redirect.github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) [Compare Source](https://redirect.github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0)
--- ### 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. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/ansible-collections/hetzner.hcloud). --------- 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> --- .pre-commit-config.yaml | 2 +- scripts/vendor.py | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b97b070..39f3607 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black diff --git a/scripts/vendor.py b/scripts/vendor.py index 13371f4..a9e630c 100755 --- a/scripts/vendor.py +++ b/scripts/vendor.py @@ -34,28 +34,24 @@ def apply_code_modifications(source_path: Path): # Wrap requests imports content = re.sub( r"import requests", - dedent( - r""" + dedent(r""" try: import requests except ImportError: requests = None - """ - ).strip(), + """).strip(), content, ) # Wrap dateutil imports content = re.sub( r"from dateutil.parser import isoparse", - dedent( - r""" + dedent(r""" try: from dateutil.parser import isoparse except ImportError: isoparse = None - """ - ).strip(), + """).strip(), content, )