diff --git a/rdd-technical-reference.md b/rdd-technical-reference.md index d859323689a469ce348e2814baf8481d5cd2ad35..cd5942893b2e95fb71f4d385ed4aec0c0cc92317 100644 --- a/rdd-technical-reference.md +++ b/rdd-technical-reference.md @@ -41,6 +41,8 @@ For the more prominent programming languages we have formatting and general styl [our own](https://github.com/subugoe/rdd-technical-reference/tree/master/style-guides/FE-XSLT.pdf), resulting from common best practices and own experiences within the department. +- **Python**: For Python [PEP 8](https://www.python.org/dev/peps/pep-0008/) should be used, Django has a styleguide based on PEP-8 with some exceptions: [Django-Styleguide](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/). There are linters and tools like [flake-8](https://pypi.org/project/flake8/) and [pep-8](https://pypi.org/project/pep8/) availabe to support. + - **SPARQL**: For SPARQL there is not really any official style guide and there is no possibility to simply include any code style automatically using a code style file. We just collect some advices how to format and use SPARQL code. - declaration of variables should start with a **?** (and not with a **$**).