diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8fe36cb..9a73c041 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] @@ -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 @@ -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 diff --git a/config/scenarios.manual.yaml b/config/scenarios.manual.yaml index da22a8d2..1db8c19f 100644 --- a/config/scenarios.manual.yaml +++ b/config/scenarios.manual.yaml @@ -900,4 +900,3 @@ KN2045_Bal_HighDemand: 2035: 0.18 2040: 0.24 2045: 0.29 - diff --git a/workflow/scripts/modify_existing_heating.py b/workflow/scripts/modify_existing_heating.py index f5a81f7a..34beadf5 100644 --- a/workflow/scripts/modify_existing_heating.py +++ b/workflow/scripts/modify_existing_heating.py @@ -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)