We are happy to accept your contributions to make ktrain
better! To avoid unnecessary work, please stick to the following process:
- Check if there is already an issue for your concern.
- If there is not, open a new one to start a discussion. We hate to close finished PRs.
- We would be happy to accept a pull request, if it is decided that your concern requires a code change.
We suggest cloning the repository and then checking out tutorials and examples for information on how to call various methods. Most relevant classes and methods should be documented. If not, you might consider helping to improve the docstrings.
See the installation instructions for setting things up. Using virtual environment (such as venv and Poetry) is strongly recommended.
To run all tests, execute:
cd ktrain/tests
python3 -m unittest
To run a specific test (e.g., test_dataloading.py
)
python3 test_dataloading.py
- Keep each PR focused. While it's more convenient, please try to avoid combining several unrelated fixes together.
- Checkout to
develop
branch before make any changes. Make sure you choosedevelop
branch as base on your PR. - Try to maintain backwards compatibility. If this is not possible, please discuss with maintainer(s).
- Use four spaces for indentation.
- To ensure a standardized code style, we use the formatter black and isort. If your code is not formatted correctly, it will fail the GitHub Workflow checks when pushed.