-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from rl-institut/feature-1-docs-navigation
Update the sections and merge subpages of the documentation
- Loading branch information
Showing
16 changed files
with
147 additions
and
84 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
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
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 was deleted.
Oops, something went wrong.
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,4 +1,7 @@ | ||
# Code of Conduct | ||
|
||
This repository is following the [Contributor Covenant Code of Conduct](https://github.com/rl-institut/super-repo/blob/production/CODE_OF_CONDUCT.md). <br> | ||
Everyone is asked to be self-reflective and always maintain a good culture of discussion and active participation. | ||
|
||
Everyone is asked to be self-reflective and always maintain a good culture | ||
of discussion and active participation. | ||
This includes written communication in this repo and direct encounters in meetings and events. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
# License | ||
|
||
This software is developed under an | ||
[open-source license](https://en.wikipedia.org/wiki/Open-source_license). <br> | ||
The selected license can be read in the | ||
[LICENSE.txt](https://github.com/rl-institut/super-repo/blob/production/LICENSE.txt). | ||
|
||
## [MIT License] | ||
|
||
The users have permission to | ||
[run and use, modify, distribute the program, and release the improvements](https://www.gnu.de/free-software/index.de.html) | ||
as long as you follow the license obligations to give a proper attribution and | ||
include the license text. | ||
|
||
Please attribute as: | ||
|
||
**"Super-Repo" © Reiner Lemoine Institut | MIT License** | ||
|
||
# Citation | ||
|
||
To [scientifically cite](https://en.wikipedia.org/wiki/Quotation) this | ||
repository, see the **_Cite this repository_** function or the file | ||
[CITATION.cff](https://github.com/rl-institut/super-repo/blob/production/CITATION.cff). | ||
|
||
# Contributing | ||
|
||
Since this software is under an open source license and can be downloaded, | ||
run and modified, you are invited to comment, improve and develop the program as you wish. <br> | ||
To contribute to the **collaborative development** follow the workflow described in | ||
[CONTRIBUTING.md](https://github.com/rl-institut/super-repo/blob/production/CONTRIBUTING.md). |
This file was deleted.
Oops, something went wrong.
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,10 +1,90 @@ | ||
# Git | ||
|
||
- .gitignore | ||
## Branches | ||
|
||
Copied from (A collection of useful .gitignore templates)[https://github.com/github/gitignore]. <br> | ||
For more information about how `.gitignore` files work, and how to use them, see (Ignoring Files chapter)[https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring] of the Pro Git book. | ||
[Git Branches](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches) | ||
are used to structure the developments and improvements. | ||
|
||
- issue_template | ||
- pull_request_template | ||
- workflows (testing) | ||
### Permanent Branches | ||
|
||
- **production** - includes the current stable (latest) version | ||
- **develop** - includes all current developments | ||
|
||
### Temporary Branches | ||
|
||
- **feature** - includes the feature and improvements that will be implemented | ||
- **hotfix** - includes small improvements before a release, should be branched from a release branch | ||
- **release** - includes the current version to be released | ||
|
||
The majority of the development will be done in `feature` branches. | ||
|
||
## Gitignore | ||
|
||
This file specifies intentionally untracked files to ignore. | ||
It is copied from [a collection of .gitignore templates](https://github.com/github/gitignore). <br> | ||
For more information about how `.gitignore` files work, see the [Ignoring Files chapter](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring) of the Pro Git book. | ||
|
||
## Issue Templates | ||
|
||
[Issue Templates](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) | ||
offer specific functions and default configurations for new issues. | ||
|
||
- [Feature Issue](https://github.com/rl-institut/super-repo/blob/production/.github/ISSUE_TEMPLATE/issue_template_feature.md) | ||
- [Bug Issue](https://github.com/rl-institut/super-repo/blob/production/.github/ISSUE_TEMPLATE/issue_template_bug.md) | ||
- [Release Issue](https://github.com/rl-institut/super-repo/blob/production/.github/ISSUE_TEMPLATE/issue_template_release.md) | ||
|
||
## Pull Request (PR) Template | ||
|
||
The [Pull Request Template](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository) | ||
is used for all PR, because it is only possible to create a single one. | ||
It includes all needed information to merge branches and release new versions. | ||
|
||
## GitHub Workflows (Actions) | ||
|
||
[GitHub Actions](https://github.com/rl-institut/super-repo/actions) | ||
are used to automate processes of the repository. <br> | ||
Main use-cases are building and publishing the documentation and run automated tests. | ||
|
||
## Pre-commit | ||
|
||
**Pre-commit** is a tool to easily setup and run `pre-commit hooks` for your git repository.<br> | ||
See the documentation of [pre-commit](https://pre-commit.com/) for further information.<br> | ||
It is used to improve auto-format code, do linting and run tests before every commit. | ||
|
||
### Install | ||
|
||
Install the required package in a python environment. <br> | ||
💻 `pip install pre-commit` install pre-commit <br> | ||
💻 `pre-commit install` install pre-commit | ||
|
||
### Setup | ||
|
||
The hooks are configured in the `.pre-commit-config.yaml` file.<br> | ||
List of implemented hooks: | ||
|
||
- [Pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks) - Out-of-the-box hooks | ||
- [Black](https://github.com/psf/black) - Python code formatter | ||
- [isort](https://github.com/pycqa/isort) - Sort Python imports | ||
- [Ruff](https://github.com/astral-sh/ruff-pre-commit) - Fast Python linter, written in Rust | ||
- [Flake8](https://github.com/pycqa/flake8) - Python linter with PyFlakes and pycodestyle | ||
- [mypy mirror](https://github.com/pre-commit/mirrors-mypy) - Added static types to Python | ||
- [mirrors-prettier](https://github.com/pre-commit/mirrors-prettier) - Formatting for other files then python scripts | ||
|
||
### Use | ||
|
||
All commits will trigger the hooks automatically.<br> | ||
💠 `git commit file -m "Commit message #IssueNr"` to commit | ||
|
||
Commit without running the hooks.<br> | ||
💠 `git commit --no-verify file` to commit without hooks | ||
|
||
!!! note "Line endings" | ||
There can be problems with file line endings on Windows, `CRLF` is used on Windows and `LF` is used on Linux. | ||
|
||
To run the hooks on all files in your repository use:<br> | ||
💻 `pre-commit run --all-files` | ||
|
||
!!! warning "Markdown files / Admonitions" | ||
If the hook is applied to markdown files that include special formatting, | ||
(e.g. `mkdocs.yml`), this can introduce incorrect changes. <br> | ||
This effects [admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/) boxes for MkDocs. |
This file was deleted.
Oops, something went wrong.
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