2020-05-29 07:50:55 +00:00
..
2023-02-16 10:50:55 +00:00
SPDX-FileCopyrightText: 2019-2023 The PyPSA-Eur Authors
2020-05-29 07:50:55 +00:00
SPDX-License-Identifier: CC-BY-4.0
2019-06-07 08:34:36 +00:00
#######################
Contributing
#######################
2023-02-16 10:50:55 +00:00
We welcome anyone interested in contributing to this project, be it with new
ideas, suggestions, by filing bug reports or contributing code to our `GitHub
repository <https://github.com/PyPSA/PyPSA-Eur>`_.
2019-06-07 08:34:36 +00:00
2020-05-28 18:36:45 +00:00
* If you already have some code changes, you can submit them directly as a `pull request <https://github.com/PyPSA/pypsa-eur/pulls> `_ .
2020-12-05 16:54:50 +00:00
* If you are wondering where we would greatly appreciate your efforts, check out the `` help wanted `` tag in the `issues list <https://github.com/PyPSA/pypsa-eur/issues> `_ and initiate a discussion there.
2020-04-14 08:54:39 +00:00
* If you start working on a feature in the code, let us know by opening an issue or a draft pull request.
This helps all of us to keep an overview on what is being done and helps to avoid a situation where we
are doing the same work twice in parallel.
2022-09-08 08:46:00 +00:00
For linting, formatting and checking your code contributions
against our guidelines (e.g. we use `Black <https://github.com/psf/black> `_ as code style
use `pre-commit <https://pre-commit.com/index.html> `_ :
2023-03-15 16:00:06 +00:00
1. Installation `` mamba install -c conda-forge pre-commit `` or `` pip install pre-commit ``
2022-09-08 08:46:00 +00:00
2. Usage:
* To automatically activate `` pre-commit `` on every `` git commit `` : Run `` pre-commit install ``
* To manually run it: `` pre-commit run --all ``
2023-03-15 16:00:06 +00:00
.. note ::
Note that installing `` pre-commit `` locally is not strictly necessary. If you create a Pull Request the `` pre-commit CI `` will be triggered automatically and take care of the checks.
2020-04-14 08:54:39 +00:00
For all code contributions we follow the four eyes principle (two person principle), i.e. all suggested code
2022-09-16 11:33:38 +00:00
including our own are reviewed by a second person before they are incorporated into our repository.
2019-06-07 08:34:36 +00:00
2020-01-09 13:09:28 +00:00
If you are unfamiliar with pull requests, the GitHub help pages have a nice `guide <https://help.github.com/en/articles/about-pull-requests> `_ .
2023-03-15 16:00:06 +00:00
To ask and answer general usage questions, join the `PyPSA mailing list <https://groups.google.com/forum/#!forum/pypsa> `_ .