Contributing
Thank you for considering a contribution to Langformers! Whether it’s a bug fix, a feature, or documentation improvement, your help is appreciated. 💙
This guide will walk you through the process of contributing to the project.
Setting Up the Project
Fork the repository on GitHub.
Clone your fork locally:
git clone https://github.com/your-username/langformers.git cd langformers
(Optional) Create and activate a virtual environment:
python -m venv env source env/bin/activate # On Windows: env\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Install the project in editable mode:
pip install -e .
Ways to Contribute
Report Bugs: Open an issue in our GitHub repository.
Suggest Features: Submit an issue with the enhancement label.
Submit Code: Follow the pull request instructions below.
Improve Docs: Documentation fixes are always welcome!
Pull Request Guidelines
Create a new branch:
git checkout -b feature/my-feature
Follow PEP 8 style guide.
Ensure your code is well tested.
Use clear and descriptive commit messages.
Rebase your branch onto the latest main before submitting a PR.
Documentation
We use Sphinx for building documentation. To build the docs locally:
cd docs
pip install -r requirements.txt
make clean && make html
Then open build/html/index.html
in your browser.
License
By contributing to this project, you agree that your contributions will be licensed under the project’s existing license, i.e., Apache License 2.0.
Thank you for being awesome!