Thank you for your interest in improving SmartChunk! This guide will help you set up your development environment, follow our coding conventions, and submit pull requests.
- Fork and clone the repository.
- Create a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate pip install -e .[tokenizer] - Run the test suite to ensure everything is working:
pytest
- Follow PEP 8 guidelines.
- Format code with black:
black . - Lint using ruff:
ruff . - Include type hints and docstrings where appropriate.
- Create a feature branch and make your changes.
- Run
black,ruff, andpytestbefore committing. - Commit your work with clear messages and push to your fork.
- Open a pull request describing your changes and link any relevant issues.
- Ensure CI checks pass and respond to review feedback.
By contributing, you agree to follow our Code of Conduct.
Happy hacking!