Contributions are warmly welcomed! Please, follow the steps below to create a pull request to add new features.
You will need to install additional dependencies to compile the documentation, to run the tests and the pre-commits:
pip install -e .[dev]We use pre-commit hooks to ensure code quality and consistency. Install the pre-commit hooks with:
pre-commit install- Fork the repository and create a new branch.
- On the new branch, add the code for a new feature or bugfix.
- If you are adding a new method or changing/extending and existing one with new features, make sure to document it docstring of the class/method.
- Build the documentation via:
cd docs
make clean html- To check the documentation you built, open
docs/build/index.html.
- Create new tests to cover the new code that you added.
- Run the tests
pytest --cov=tgp --cov-report=term-missing --cov-report=html- Check the code coverage report to see if all the code is covered and correctly executed.
- If you are using VSCode, go on
Testing, selectpytestsand/testsas the target folder.
- Create a PR on Github.
- Describe your changes in detail.