From f7645f0b15ce89cb3298a51562b083bc54afc17e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:12:39 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.15.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.12...v0.15.10) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e27ea8a..6e3d155 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.1.0 + rev: 26.3.1 hooks: - id: black @@ -15,6 +15,6 @@ repos: - id: check-json - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.12 + rev: v0.15.10 hooks: - id: ruff From c0b8d321fd07a129cfe80e23b40d673f4aa776f0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:12:46 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- install-poetry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/install-poetry.py b/install-poetry.py index f222f0c..8452e80 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -23,6 +23,7 @@ For full documentation, visit https://python-poetry.org/docs/#installation. """ + import sys From 7f9edb109acc402e37793f6a4913464e149b37ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:15:01 +0200 Subject: [PATCH 3/3] fix deprecations --- install-poetry.py | 4 +--- pyproject.toml | 11 ++++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/install-poetry.py b/install-poetry.py index 8452e80..29ad14c 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -26,7 +26,6 @@ import sys - # Eager version check so we fail nicely before possible syntax errors if sys.version_info < (3, 6): # noqa: UP036 sys.stdout.write("Poetry installer requires Python 3.6 or newer to run!\n") @@ -51,7 +50,6 @@ from urllib.request import Request from urllib.request import urlopen - SHELL = os.getenv("SHELL", "") WINDOWS = sys.platform.startswith("win") or (sys.platform == "cli" and os.name == "nt") MINGW = sysconfig.get_platform().startswith("mingw") @@ -536,7 +534,7 @@ def run(self) -> int: version = self._path else: try: - version, current_version = self.get_version() + version, _current_version = self.get_version() except ValueError: return 1 diff --git a/pyproject.toml b/pyproject.toml index 6abfcb9..0cafec0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,12 @@ [tool.ruff] fix = true +line-length = 88 +target-version = "py37" + +[tool.ruff.lint] unfixable = [ "ERA", # do not autoremove commented out code ] -target-version = "py37" -line-length = 88 extend-select = [ "B", # flake8-bugbear "C4", # flake8-comprehensions @@ -20,10 +22,9 @@ extend-select = [ "UP", # pyupgrade ] -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" -[tool.ruff.isort] +[tool.ruff.lint.isort] force-single-line = true lines-between-types = 1 -lines-after-imports = 2