From b2905cdfb49c44a18b7b114507d7c129cf59f788 Mon Sep 17 00:00:00 2001 From: Henri Karhula <100681258+henrikarhula@users.noreply.github.com> Date: Thu, 7 Nov 2024 11:27:29 +0100 Subject: [PATCH 1/4] Fix index error by repeated lambda updates (#45) Update constraints.py Reset list of constraint penalty functions to avoid endless additions. Signed-off-by: Henri Karhula <100681258+henrikarhula@users.noreply.github.com> --- src/mqt/qao/constraints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqt/qao/constraints.py b/src/mqt/qao/constraints.py index 2233349..303f230 100644 --- a/src/mqt/qao/constraints.py +++ b/src/mqt/qao/constraints.py @@ -55,6 +55,7 @@ def translate_constraints(self, var: Variables) -> tuple[bool, Variables]: bool -- for identifying eventual errors or issue in the conversion auxiliary_variables -- variable added for writing constraints """ + self.constraints_penalty_functions = [] auxiliary_variables = Variables() i = 0 j = 0 From 4599f5e90408fb7e1f9580fbaff16bb09260adc1 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Thu, 7 Nov 2024 11:49:26 +0100 Subject: [PATCH 2/4] :bug: fix action version Signed-off-by: Lukas Burgholzer --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1c4a76b..1d21840 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,7 +33,7 @@ jobs: path: dist merge-multiple: true - name: Generate artifact attestation for sdist and wheel(s) - uses: actions/attest-build-provenance@v1.4 + uses: actions/attest-build-provenance@v1 with: subject-path: "dist/*" - uses: pypa/gh-action-pypi-publish@release/v1 From 70271f8a9bf42b79c0cd0458d69395c36b223cb0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:10:26 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20update=20p?= =?UTF-8?q?re-commit=20hooks=20(#46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4d6722..5ac7908 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: # Python linting 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"] @@ -93,7 +93,7 @@ repos: # Check for spelling - repo: https://github.com/crate-ci/typos - rev: v1.27.0 + rev: typos-dict-v0.11.35 hooks: - id: typos @@ -123,6 +123,6 @@ repos: # Check the pyproject.toml file - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.10.21 + rev: 2024.11.11 hooks: - id: validate-pyproject From 0fc7b0285968f15d8b567d5e8b3a428d947a9d6e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:15:17 -0500 Subject: [PATCH 4/4] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20update=20p?= =?UTF-8?q?re-commit=20hooks=20(#47)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.7.4) - [github.com/henryiii/validate-pyproject-schema-store: 2024.11.11 → 2024.11.18](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.11.11...2024.11.18) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .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 5ac7908..ee41734 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: # Python linting using ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.7.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -123,6 +123,6 @@ repos: # Check the pyproject.toml file - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.11.11 + rev: 2024.11.18 hooks: - id: validate-pyproject