-
Notifications
You must be signed in to change notification settings - Fork 55
config: add pre-commit yaml #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
da27fea
config: add pre-commit yaml
finozzifa cf7999c
docs: modify release notes
finozzifa 6073fc9
config: modify environment.yaml
finozzifa 3dd3e2e
config: add ruff.toml
finozzifa a863756
code: initial pre-commit changes
finozzifa 7ae8ed1
remove license
finozzifa b3ddc1e
config: new licence
finozzifa bf91aa1
config: modify license
finozzifa 1802efb
change license for Makefile
finozzifa 0c4d5db
code: add license
finozzifa 611ebf6
code : add licenses
finozzifa a4f3c75
code: changes driven by linter
finozzifa c3b2d38
data: update outputs
finozzifa e9a40d6
change conf.py
finozzifa 8da83cd
change conf.py - 2
finozzifa 4dcbd6f
change license
finozzifa 7d4b514
remove reuse compliance
lkstrp 16df035
fix docs
lkstrp 4b71b3f
pin docs build requirements
lkstrp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.