Thank you for your interest in contributing to CodeToPrompt! This document provides guidelines and instructions for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/codetoprompt.git cd codetoprompt - Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install development dependencies:
pip install -e .[dev]
-
Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Make your changes and ensure they pass all checks:
# Format code black . isort . # Run type checking mypy . # Run linting flake8 # Run tests pytest
-
Commit your changes with a descriptive message:
git commit -m "feat: add new feature" -
Push your branch and create a pull request
- Use Black for code formatting
- Use isort for import sorting
- Use mypy for type checking
- Use flake8 for linting
- Write tests for new features
- Ensure all tests pass before submitting a PR
- Maintain or improve test coverage
- Add docstrings to all public functions and classes
- Update README.md if needed
- Update CHANGELOG.md for significant changes
- Update the README.md with details of changes if needed
- Update the CHANGELOG.md with your changes
- The PR will be merged once you have the sign-off of at least one maintainer