From e873c9ee92d42ea71af0e43988fef38d812e8ab8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:12:47 +0000 Subject: [PATCH 1/2] [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/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) --- .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 57a88091..a54258d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: # Run ruff to lint and format - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.1 hooks: # Run the linter. - id: ruff From 6a4d695010fd9485013a92ea411249a4258bb49b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:13:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- latex_tables/tables_in_latex.py | 2 +- scripts/_helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/latex_tables/tables_in_latex.py b/latex_tables/tables_in_latex.py index 8b1929d7..ae100399 100644 --- a/latex_tables/tables_in_latex.py +++ b/latex_tables/tables_in_latex.py @@ -298,7 +298,7 @@ "biomass CHP", "battery storage", "home battery storage", - "central coal CHP" "hydrogen storage underground", + "central coal CHPhydrogen storage underground", "hydrogen storage tank type 1", "central water tank storage", "decentral water tank storage", diff --git a/scripts/_helpers.py b/scripts/_helpers.py index 9772ca2d..4420797a 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -19,7 +19,7 @@ def __setattr__(self, name, value): Setattr is called when the syntax a.b = 2 is used to set a value. """ if hasattr(Dict, name): - raise AttributeError("'Dict' object attribute " f"'{name}' is read-only") + raise AttributeError(f"'Dict' object attribute '{name}' is read-only") self[name] = value def __getattr__(self, item):