mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:32:33 +02:00
* Moved contribution rules and format documentation to CONTRIBUTING.md
1.5 KiB
1.5 KiB
Contribution guidelines
Code style
We defined to use the following formats:
- Whitespace Formatting by Black
- Docstrings Style see the examples provided by sphinx napoleon Types in the docstrings are optional but should be consistent per module.
- Import Order by isort
- Strict Typing of function headers see the examples provided by the mypy documentation.
Language
We decided to use english on everything close to code but will write longer texts that are not close to the code in german.
Pre-Commit installation
-
clone the project
-
install the following python package:
pre-commit
-
execute the command
pre-commit install
to insert the git githook into your local repository.- for more information read Python Pre-Commit
- the following code format rules are so enforced: