From b0396677cb74979685f0de31738a45448f9ca9c0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Nov 2024 04:48:28 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20Update=20p?= =?UTF-8?q?re-commit=20hook=20astral-sh/ruff-pre-commit=20to=20v0.7.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 888c3291..d5c7da09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: # Python linting and formatting using ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.7.3 hooks: - id: ruff args: ["--fix", "--show-fixes"] From d7a81949cab29fffcdc260a1b1601b77203a6bb8 Mon Sep 17 00:00:00 2001 From: burgholzer Date: Sat, 9 Nov 2024 09:02:34 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8=20address=20new=20ruff=20warni?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- src/mqt/qcec/_compat/importlib/resources.py | 6 +++--- src/mqt/qcec/_compat/typing.py | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mqt/qcec/_compat/importlib/resources.py b/src/mqt/qcec/_compat/importlib/resources.py index c37dfa5d..875b6825 100644 --- a/src/mqt/qcec/_compat/importlib/resources.py +++ b/src/mqt/qcec/_compat/importlib/resources.py @@ -2,10 +2,10 @@ import sys -if sys.version_info < (3, 10): - from importlib_resources import as_file, files -else: +if sys.version_info >= (3, 10): from importlib.resources import as_file, files +else: + from importlib_resources import as_file, files __all__ = ["as_file", "files"] diff --git a/src/mqt/qcec/_compat/typing.py b/src/mqt/qcec/_compat/typing.py index 58f72aee..1637a60b 100644 --- a/src/mqt/qcec/_compat/typing.py +++ b/src/mqt/qcec/_compat/typing.py @@ -3,11 +3,10 @@ import sys -if sys.version_info < (3, 11): - from typing_extensions import Unpack - -else: +if sys.version_info >= (3, 11): from typing import Unpack +else: + from typing_extensions import Unpack __all__ = ["Unpack"]