Skip to content

Commit c90e38d

Browse files
[pre-commit.ci] pre-commit autoupdate (#13)
* [pre-commit.ci] pre-commit autoupdate --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ivan Ruiz Manuel <72193617+irm-codebase@users.noreply.github.com>
1 parent 95d5ea8 commit c90e38d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_language_version:
44
repos:
55
# Generic 'file quality' testing
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
# Machine-friendliness
1010
- id: trailing-whitespace
@@ -25,7 +25,7 @@ repos:
2525

2626
# Python file formatting
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.12.2
28+
rev: v0.15.4
2929
hooks:
3030
- id: ruff
3131
args: [--fix, --exit-non-zero-on-fix]

workflow/scripts/powerplants_get_inflow_mwh.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ def _estimate_bounded_powerplant_inflow(
8383
f"Country data for {year} is not unique!"
8484
)
8585
annual_powerplant_mwh = plants_by_id.apply(
86-
lambda x: annual_national_generation[x.country_id]
87-
* national_cap_share_per_powerplant[x.name],
86+
lambda x: (
87+
annual_national_generation[x.country_id]
88+
* national_cap_share_per_powerplant[x.name]
89+
),
8890
axis="columns",
8991
)
9092
hours_in_year = 366 * 24 if isleap(year) else 365 * 24

0 commit comments

Comments
 (0)