Contributions are welcome! Here are some guidelines for contributing to this project.
- Fork the repository: Create your own fork of the project to work on.
- Create a feature branch: Make your changes in a new branch.
- Follow coding standards:
- Use consistent indentation (4 spaces for Python)
- Follow PEP 8 style guidelines
- Add comments for complex logic
- Include docstrings for functions and classes
- Write tests: Add tests for any new functionality.
- Update documentation: Keep the README and other documentation up to date.
- Submit a pull request: When your changes are ready, submit a PR with a clear description of what you've done.
- Update the README.md with details of changes if needed.
- Update the documentation if you're changing functionality.
- The PR will be merged once you have the sign-off of at least one maintainer.
- Be respectful and inclusive
- Provide constructive feedback
- Focus on what is best for the community
- Show empathy towards other community members
-
Clone your fork:
git clone https://gitlab.com/your-username/prompt-evaluator.git cd prompt-evaluator -
Install development dependencies:
pip install -r requirements.txt
-
Set up pre-commit hooks (if available):
pre-commit install
Before submitting a pull request, make sure to:
-
Run existing tests:
python -m pytest tests/
-
Test your changes with sample datasets:
python prompt_evaluator.py --input datasets/prompt_inject_dataset.csv --lines 10
-
Verify documentation is updated and accurate
When making changes that affect functionality:
- Update the relevant documentation files in the
docs/folder - Add examples if introducing new features
- Update the main README if adding new major features
- Ensure all code examples are tested and working
Thank you for your contributions!