diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4279b96a..03dffc2a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: # Make docstrings PEP 257 compliant - repo: https://github.com/PyCQA/docformatter - rev: v1.6.1-rc1 + rev: v1.6.3 hooks: - id: docformatter args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"] diff --git a/scripts/build_bus_regions.py b/scripts/build_bus_regions.py index ee90eef6..6dc3b5a4 100644 --- a/scripts/build_bus_regions.py +++ b/scripts/build_bus_regions.py @@ -56,9 +56,10 @@ logger = logging.getLogger(__name__) def voronoi_partition_pts(points, outline): """ - Compute the polygons of a voronoi partition of `points` within the - polygon `outline`. Taken from - https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py + Compute the polygons of a voronoi partition of `points` within the polygon + `outline`. Taken from + https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py. + Attributes ---------- points : Nx2 - ndarray[dtype=float] diff --git a/scripts/build_cop_profiles.py b/scripts/build_cop_profiles.py index 342bd7e0..5d36cd5b 100644 --- a/scripts/build_cop_profiles.py +++ b/scripts/build_cop_profiles.py @@ -10,8 +10,6 @@ The COP is a function of the temperature difference between source and sink. The quadratic regression used is based on Staffell et al. (2012) - - https://doi.org/10.1039/C2EE22653G. """ diff --git a/scripts/build_gas_network.py b/scripts/build_gas_network.py index f3021022..23f58caa 100644 --- a/scripts/build_gas_network.py +++ b/scripts/build_gas_network.py @@ -27,8 +27,6 @@ def diameter_to_capacity(pipe_diameter_mm): bar -> 21.7 GW CH4 pipe capacity (LHV) Based on p.15 of - - https://gasforclimate2050.eu/wp-content/uploads/2020/07/2020_European-Hydrogen-Backbone_Report.pdf """ # slopes definitions