Thank you for your interest in contributing to LangChain ZendFi!
-
Clone the repository
git clone https://github.com/zendfi/langchain-zendfi.git cd langchain-zendfi -
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install in development mode
pip install -e ".[dev]" -
Set up environment variables
cp examples/.env.example .env # Edit .env with your API keys
# Run all tests
pytest
# Run with coverage
pytest --cov=langchain_zendfi
# Run specific test file
pytest tests/test_tools.py
# Run with verbose output
pytest -vWe use black for formatting and ruff for linting:
# Format code
black langchain_zendfi tests examples
# Lint code
ruff check langchain_zendfi tests
# Type check
mypy langchain_zendfi- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Run tests and linting
- Commit with clear messages
- Push and create a Pull Request
For integration tests, you'll need a ZendFi API key:
- Sign up at zendfi.com
- Get a test API key (prefix:
zk_test_) - Set
ZENDFI_API_KEYenvironment variable
Unit tests use mocks and don't require an API key.
- Update version in
pyproject.tomlandlangchain_zendfi/__init__.py - Update CHANGELOG.md
- Create a git tag:
git tag v0.1.0 - Push tag:
git push origin v0.1.0 - GitHub Actions will publish to PyPI
- Open an issue on GitHub
- Join our Discord: discord.gg/zendfi
- Email: support@zendfi.com