From de9ae7cabba45ef545766b01f1049570fa324387 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 26 Mar 2023 23:17:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .pre-commit-config.yaml | 2 +- .reuse/dep5 | 2 +- doc/conf.py | 1 + scripts/__init__.py | 1 + scripts/_helpers.py | 1 + scripts/add_electricity.py | 1 + scripts/add_extra_components.py | 1 + scripts/augmented_line_connections.py | 1 + scripts/base_network.py | 1 + scripts/build_bus_regions.py | 1 + scripts/build_cutout.py | 1 + scripts/build_demand_profiles.py | 1 + scripts/build_natura_raster.py | 1 + scripts/build_osm_network.py | 1 + scripts/build_powerplants.py | 1 + scripts/build_renewable_profiles.py | 1 + scripts/build_shapes.py | 1 + scripts/build_test_configs.py | 1 + scripts/clean_osm_data.py | 1 + scripts/cluster_network.py | 1 + scripts/config_osm_data.py | 1 + scripts/download_osm_data.py | 1 + scripts/make_statistics.py | 1 + scripts/make_summary.py | 1 + scripts/monte_carlo.py | 1 + scripts/plot_network.py | 1 + scripts/plot_summary.py | 1 + scripts/prepare_network.py | 1 + scripts/retrieve_databundle_light.py | 1 + scripts/simplify_network.py | 1 + scripts/solve_network.py | 1 + scripts/zipfolders_googledrive.py | 1 + 32 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 479dd9bef..8307995ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,4 +67,4 @@ repos: - repo: https://github.com/fsfe/reuse-tool rev: v1.0.0 hooks: - - id: reuse \ No newline at end of file + - id: reuse diff --git a/.reuse/dep5 b/.reuse/dep5 index 9ff03d104..4a1632b46 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -17,4 +17,4 @@ License: CC-BY-4.0 Files: .github/* Copyright: The PyPSA-Earth and PyPSA-Eur Authors -License: CC0-1.0 \ No newline at end of file +License: CC0-1.0 diff --git a/doc/conf.py b/doc/conf.py index 3401cf7dc..c88738818 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/__init__.py b/scripts/__init__.py index e340ebd7f..a635e74eb 100644 --- a/scripts/__init__.py +++ b/scripts/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/_helpers.py b/scripts/_helpers.py index 9804a3369..e79613d2a 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index 1a7204ca5..51bb0fc40 100755 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/add_extra_components.py b/scripts/add_extra_components.py index f4e1ee244..b8cc83e69 100644 --- a/scripts/add_extra_components.py +++ b/scripts/add_extra_components.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/augmented_line_connections.py b/scripts/augmented_line_connections.py index 66a69c85b..cc2de1abd 100644 --- a/scripts/augmented_line_connections.py +++ b/scripts/augmented_line_connections.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/base_network.py b/scripts/base_network.py index 8c28baf35..e613ad2da 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_bus_regions.py b/scripts/build_bus_regions.py index 2edccec67..11538fd12 100644 --- a/scripts/build_bus_regions.py +++ b/scripts/build_bus_regions.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_cutout.py b/scripts/build_cutout.py index 2b5270b54..1ed265553 100644 --- a/scripts/build_cutout.py +++ b/scripts/build_cutout.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_demand_profiles.py b/scripts/build_demand_profiles.py index 0c2b31ed4..9b43007d4 100644 --- a/scripts/build_demand_profiles.py +++ b/scripts/build_demand_profiles.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_natura_raster.py b/scripts/build_natura_raster.py index bcf973b77..49dcf90c0 100644 --- a/scripts/build_natura_raster.py +++ b/scripts/build_natura_raster.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_osm_network.py b/scripts/build_osm_network.py index 7f03a5ff3..7916aa153 100644 --- a/scripts/build_osm_network.py +++ b/scripts/build_osm_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_powerplants.py b/scripts/build_powerplants.py index da69a615d..d71b20403 100644 --- a/scripts/build_powerplants.py +++ b/scripts/build_powerplants.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index e85366095..c4a83155c 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # diff --git a/scripts/build_shapes.py b/scripts/build_shapes.py index 430dabc0d..c5a2b98ac 100644 --- a/scripts/build_shapes.py +++ b/scripts/build_shapes.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/build_test_configs.py b/scripts/build_test_configs.py index 3fe03e449..5a29ab967 100644 --- a/scripts/build_test_configs.py +++ b/scripts/build_test_configs.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/clean_osm_data.py b/scripts/clean_osm_data.py index 9323329c6..ae3a66d1f 100644 --- a/scripts/clean_osm_data.py +++ b/scripts/clean_osm_data.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index 2f03517f1..d965ed4d5 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/config_osm_data.py b/scripts/config_osm_data.py index 79e04866a..72c3e079d 100644 --- a/scripts/config_osm_data.py +++ b/scripts/config_osm_data.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/download_osm_data.py b/scripts/download_osm_data.py index a50810922..32fd643aa 100644 --- a/scripts/download_osm_data.py +++ b/scripts/download_osm_data.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/make_statistics.py b/scripts/make_statistics.py index dd5d72f68..505aa287a 100644 --- a/scripts/make_statistics.py +++ b/scripts/make_statistics.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/make_summary.py b/scripts/make_summary.py index 91ce9e559..4d6900075 100644 --- a/scripts/make_summary.py +++ b/scripts/make_summary.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/monte_carlo.py b/scripts/monte_carlo.py index 4d5f43402..67b8ba787 100644 --- a/scripts/monte_carlo.py +++ b/scripts/monte_carlo.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/plot_network.py b/scripts/plot_network.py index f68a571e9..ec7712b64 100644 --- a/scripts/plot_network.py +++ b/scripts/plot_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/plot_summary.py b/scripts/plot_summary.py index 4b1e56cb8..41c50d72c 100644 --- a/scripts/plot_summary.py +++ b/scripts/plot_summary.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/prepare_network.py b/scripts/prepare_network.py index be7956864..717aa2d4d 100755 --- a/scripts/prepare_network.py +++ b/scripts/prepare_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/retrieve_databundle_light.py b/scripts/retrieve_databundle_light.py index 1ba36ff35..51201e69f 100644 --- a/scripts/retrieve_databundle_light.py +++ b/scripts/retrieve_databundle_light.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Copyright 2019-2020 Fabian Hofmann (FIAS) # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # diff --git a/scripts/simplify_network.py b/scripts/simplify_network.py index 347ca82b5..08f051aea 100644 --- a/scripts/simplify_network.py +++ b/scripts/simplify_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 7ff1e5031..d5d83af05 100755 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later diff --git a/scripts/zipfolders_googledrive.py b/scripts/zipfolders_googledrive.py index fec4db460..daae083ab 100644 --- a/scripts/zipfolders_googledrive.py +++ b/scripts/zipfolders_googledrive.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors # # SPDX-License-Identifier: GPL-3.0-or-later