Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #317

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:

# Sort package imports alphabetically
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand All @@ -27,7 +27,7 @@ repos:

# Find common spelling mistakes in comments and docstrings
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom,appartment,bage,ore,setis,tabacco,berfore,vor,pris'] # Ignore capital case words, e.g. country codes
Expand All @@ -50,7 +50,7 @@ repos:

# Formatting with "black" coding style
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
# Format Python files
- id: black
Expand Down
1 change: 0 additions & 1 deletion config/scenarios.manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -900,4 +900,3 @@ KN2045_Bal_HighDemand:
2035: 0.18
2040: 0.24
2045: 0.29

8 changes: 4 additions & 4 deletions workflow/scripts/modify_existing_heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@

logger.info(new_values)
logger.warning(f"Total stock: {total_stock}, New stock: {new_values.sum()}")
logger.warning(f"District heating is not correctly accounted for in the new stock.")
logger.warning(
f"District heating is not correctly accounted for in the new stock."
)
new_values *= existing_factor

for tech, peak in new_values.items():
existing_heating.at["Germany", tech] = peak

logger.info(
f"Heating demand after modification: {existing_heating.loc['Germany']}"
)
logger.info(f"Heating demand after modification: {existing_heating.loc['Germany']}")

existing_heating.to_csv(snakemake.output.existing_heating)