From 606df136a7f9b28f468a9add3d9212423c852619 Mon Sep 17 00:00:00 2001 From: David Jose Florez Rodriguez <59715727+DavidLikesLearning@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:09:18 -0400 Subject: [PATCH 1/4] clean incomplete emissions constraint handler fixing bug #331 --- temoa/components/limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temoa/components/limits.py b/temoa/components/limits.py index f7f5d5d9c..4f8fcfc30 100644 --- a/temoa/components/limits.py +++ b/temoa/components/limits.py @@ -941,7 +941,7 @@ def limit_emission_constraint( # in the case that there is nothing to sum, skip if isinstance(expr, bool): # an empty list was generated msg = "Warning: No technology produces emission '%s', though limit was specified as %s.\n" - logger.warning(msg, (e, emission_limit)) + logger.warning(msg % (e, emission_limit)) sys.stderr.write(msg % (e, emission_limit)) return Constraint.Skip From 2e082e28b429007f7a18e4571921ec3be52b44b8 Mon Sep 17 00:00:00 2001 From: David Jose Florez Rodriguez <59715727+DavidLikesLearning@users.noreply.github.com> Date: Tue, 2 Jun 2026 18:54:08 -0400 Subject: [PATCH 2/4] Fix logger to preferred style avoids string interpolation just in case --- temoa/components/limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temoa/components/limits.py b/temoa/components/limits.py index 4f8fcfc30..7fa6bf02c 100644 --- a/temoa/components/limits.py +++ b/temoa/components/limits.py @@ -941,7 +941,7 @@ def limit_emission_constraint( # in the case that there is nothing to sum, skip if isinstance(expr, bool): # an empty list was generated msg = "Warning: No technology produces emission '%s', though limit was specified as %s.\n" - logger.warning(msg % (e, emission_limit)) + logger.warning(msg, e, emission_limit) sys.stderr.write(msg % (e, emission_limit)) return Constraint.Skip From 5ac3149fa1899e52724414b9cdfcf6bf8b7cadaf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 16:57:34 +0000 Subject: [PATCH 3/4] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/uv-pre-commit: 0.11.19 → 0.11.21](https://github.com/astral-sh/uv-pre-commit/compare/0.11.19...0.11.21) - [github.com/astral-sh/ruff-pre-commit: v0.15.16 → v0.15.17](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.16...v0.15.17) --- .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 5b931f519..2f9b6dd86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.19 + rev: 0.11.21 hooks: # Dependency management - id: uv-lock @@ -47,7 +47,7 @@ repos: # Python Linting & Formatting with Ruff - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.15.16" + rev: "v0.15.17" hooks: - id: ruff name: ruff (linter) From a81d5993492b36b1a68d2d988438258edfa27fe0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 16:56:35 +0000 Subject: [PATCH 4/4] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/uv-pre-commit: 0.11.21 → 0.11.23](https://github.com/astral-sh/uv-pre-commit/compare/0.11.21...0.11.23) - [github.com/astral-sh/ruff-pre-commit: v0.15.17 → v0.15.18](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.17...v0.15.18) --- .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 2f9b6dd86..5f170d2a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.11.21 + rev: 0.11.23 hooks: # Dependency management - id: uv-lock @@ -47,7 +47,7 @@ repos: # Python Linting & Formatting with Ruff - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.15.17" + rev: "v0.15.18" hooks: - id: ruff name: ruff (linter)