-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config: add pre-commit yaml * docs: modify release notes * config: modify environment.yaml * config: add ruff.toml * code: initial pre-commit changes * remove license * config: new licence * config: modify license * change license for Makefile * code: add license * code : add licenses * code: changes driven by linter * data: update outputs * change conf.py * change conf.py - 2 * change license * remove reuse compliance * fix docs * pin docs build requirements --------- Co-authored-by: lkstrp <[email protected]>
- Loading branch information
Showing
33 changed files
with
3,264 additions
and
2,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: PyPSA Mailing List | ||
url: https://groups.google.com/forum/#!forum/pypsa | ||
about: Please ask and answer general usage questions here. | ||
- name: PyPSA Mailing List | ||
url: https://groups.google.com/forum/#!forum/pypsa | ||
about: Please ask and answer general usage questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# SPDX-FileCopyrightText: Contributors to technology-data <https://github.com/pypsa/technology-data> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
exclude: "^LICENSES" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-added-large-files | ||
args: ["--maxkb=2000"] | ||
|
||
# Run ruff to lint and format | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.8.6 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
# Find common spelling mistakes in comments and docstrings | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom,appartment,bage,ore,setis,tabacco,berfore,vor,pris,WEGE,Wege,Eletricity'] # Ignore capital case words, e.g. country codes | ||
types_or: [python, rst, markdown] | ||
files: ^(scripts|doc)/ | ||
|
||
# YAML formatting | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.14.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
exclude: pinned\.yaml$ | ||
args: [--autofix, --indent, "2", --preserve-quotes] | ||
|
||
# Format Snakemake rule / workflow files | ||
- repo: https://github.com/snakemake/snakefmt | ||
rev: v0.10.2 | ||
hooks: | ||
- id: snakefmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# SPDX-FileCopyrightText: Contributors to technology-data <https://github.com/pypsa/technology-data> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
|
||
version: 0.9.2 | ||
|
||
# considered years for output data | ||
years : [2020, 2025, 2030, 2035, 2040, 2045, 2050] | ||
years: [2020, 2025, 2030, 2035, 2040, 2045, 2050] | ||
|
||
expectation : "" # tech data uncertainty, possible options [None, "optimist", "pessimist"] | ||
expectation: "" # tech data uncertainty, possible options [None, "optimist", "pessimist"] | ||
|
||
#year for EUR outputs | ||
eur_year : 2020 | ||
eur_year: 2020 | ||
|
||
# add solar from different source | ||
solar_utility_from_vartiaien : false | ||
solar_rooftop_from_etip : false | ||
solar_utility_from_vartiaien: false | ||
solar_rooftop_from_etip: false | ||
|
||
energy_storage_database: | ||
h2_from_budischak: false # add fuel cell/electrolysis efficiencies from Budischak (DEA assumptions very conservative) | ||
ewg_home_battery: true # add home battery data derived from DEA data and EWG study | ||
pnnl_energy_storage: | ||
add_data: true # add storage data mainly from PNNL | ||
approx_beyond_2030: ["same_as_2030"] # ["geometric_series"] or ["same_as_2030"] | ||
h2_from_budischak: false # add fuel cell/electrolysis efficiencies from Budischak (DEA assumptions very conservative) | ||
ewg_home_battery: true # add home battery data derived from DEA data and EWG study | ||
pnnl_energy_storage: | ||
add_data: true # add storage data mainly from PNNL | ||
approx_beyond_2030: ["same_as_2030"] # ["geometric_series"] or ["same_as_2030"] | ||
|
||
# remove grid connection costs from DEA for offwind because they are calculated | ||
# separately in pypsa-eur | ||
offwind_no_gridcosts : true | ||
offwind_no_gridcosts: true | ||
|
||
desalination: | ||
salinity: 35 # in PSU (Practical Salinity Unit) = kg/m^3 | ||
salinity: 35 # in PSU (Practical Salinity Unit) = kg/m^3 | ||
|
||
ndigits: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.