Contributing to srai¶
Contributing to the code base¶
Getting started¶
To make changes to srai's code base, you need to fork and then clone the GitHub repository.
For first setup of the project locally, the following commands have to be executed.
-
Make sure you have installed at least version 3.9+ of Python.
-
Install PDM (only if not already installed)
-
Install package locally (will download all dev packages and create a local venv)
-
Activate pdm venv
-
Activate pre-commit hooks
Testing¶
For testing, tox is used to allow testing on multiple Python versions.
To test code locally before committing, run:
Documentation¶
This repository uses MkDocs as a documentation generator. To build and serve the documentation locally, run:
Docstrings should be written following the google convention. To ease development one can use autoDocstring extension to generate the docstrings.
Python conventions¶
All Python code must be written compatible with Python 3.9+.
Deployment¶
Releasing a new version¶
To release a new version:
This command will update the version strings across the project, commit and tag the commit with the new version. All you need to do is to push the changes.