Skip to content

Commit

Permalink
Merge pull request #671 from PyPSA/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
fneum committed May 23, 2023
2 parents 859e32f + 0f09545 commit 0c95b5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:

# Make docstrings PEP 257 compliant
- repo: https://github.com/PyCQA/docformatter
rev: v1.6.5
rev: v1.7.1
hooks:
- id: docformatter
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
Expand Down
9 changes: 5 additions & 4 deletions scripts/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,11 @@ def make_accessable(*ios):


def override_component_attrs(directory):
"""Tell PyPSA that links can have multiple outputs by
overriding the component_attrs. This can be done for
as many buses as you need with format busi for i = 2,3,4,5,....
See https://pypsa.org/doc/components.html#link-with-multiple-outputs-or-inputs
"""
Tell PyPSA that links can have multiple outputs by overriding the
component_attrs. This can be done for as many buses as you need with format
busi for i = 2,3,4,5,.... See https://pypsa.org/doc/components.html#link-
with-multiple-outputs-or-inputs.
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_retro_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ def get_solar_gains_per_year(window_area):

def map_to_lstrength(l_strength, df):
"""
renames column names from a pandas dataframe to map tabula retrofitting
strengths [2 = moderate, 3 = ambitious] to l_strength
Renames column names from a pandas dataframe to map tabula retrofitting
strengths [2 = moderate, 3 = ambitious] to l_strength.
"""
middle = len(l_strength) // 2
map_to_l = pd.MultiIndex.from_arrays(
Expand Down

0 comments on commit 0c95b5a

Please sign in to comment.