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 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):