Contributing¶
We welcome contributions! Please follow these guidelines to ensure a smooth collaboration.
Development Setup¶
Fork the repository.
Clone your fork:
git clone https://github.com/your-username/transformer.gitInstall in development mode with development dependencies:
pip install -r requirements.txt
pip install -r docs/requirements-docs.txt # Optional
pip install -e .
Create a branch for your feature:
git checkout -b feature/amazing-feature
Code Style¶
We use Black for code formatting and isort for import sorting. Please run these before committing:
black transformer/ tests/
isort transformer/ tests/
Testing¶
Run tests with pytest:
pytest tests/
Documentation¶
If you change any public API, please update the docstrings accordingly. To build the documentation locally:
cd docs
pip install -r requirements-docs.txt
make clean
make html
Then check in your browser with:
cd build/html
python -m http.server
Pull Request Process¶
Update the
README.mdand documentation if needed.Ensure all tests pass.
Submit a pull request with a clear title and description.
Code of Conduct¶
Please note that this project adheres to a Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.