Welcome and thank you for considering contributing to LangFair!
It takes a lot of time and effort to use software much less build upon it, so we deeply appreciate your desire to help make this project thrive.
If you find a bug, please report it by opening an issue on GitHub. Include as much detail as possible:
- Steps to reproduce the bug.
- Expected and actual behavior.
- Screenshots if applicable.
- Any other information that might help us understand the problem.
We welcome suggestions for new features or improvements. To suggest an enhancement, please open an issue on GitHub and include:
- A clear description of the suggested enhancement.
- Why you believe this enhancement would be useful.
- Any relevant examples or mockups.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
Please ensure your pull request adheres to the following guidelines:
- Follow the project's code style.
- Include tests for any new features or bug fixes.
- Clone the repository:
git clone https://github.com/cvs-health/langfair.git
- Navigate to the project directory:
cd langfair
- Create and activate a virtual environment (using
venv
orconda
) - Install dependencies:
poetry install
- Install our pre-commit hooks to ensure code style compliance:
pre-commit install
- Run tests to ensure everything is working:
pre-commit run --all-files
You're ready to develop!
For documentation contributions Our documentation lives on the gh-pages branch and is hosted via GitHub Pages.
There are two relevant directories:
docs_src
- where source documentation files are locateddocs
- where the built documentation that is shown on GitHub Pages lives.
To build documentation:
- Checkout the
gh-pages
branch - Navigate to the source dir:
cd docs_src
- Build documentation for a GitHub Pages deployment:
make github
- We use Ruff to lint and format our files.
- Our pre-commit hook will run Ruff linting and formatting when you commit.
- You can manually run Ruff at any time (see Ruff usage).
Please ensure your code is properly formatted and linted before committing.
Before contributing to this CVS Health sponsored project, you will need to sign the associated Contributor License Agreement (CLA)
Thanks again for using and supporting LangFair!