Thanks for your interest in contributing! This guide will help you get started.
- Python 3.9 or higher
- pip and virtualenv
- Git
- Fork and clone the repository:
git clone https://github.com/yourusername/python-sdk.git
cd python-sdk- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install development dependencies:
pip install -e ".[dev]"We use several tools to maintain code quality:
- Black: Code formatting
- isort: Import sorting
- mypy: Type checking
- flake8: Linting
Format your code before committing:
black ainative/
isort ainative/
mypy ainative/
flake8 ainative/# Run all tests
pytest
# With coverage
pytest --cov=ainative
# Specific module
pytest tests/test_zerodb.pyAll new features should include tests.
- Create a feature branch:
git checkout -b feature/your-feature-name - Make your changes — write code following the style guidelines above, add tests, update docs as needed
- Commit using Conventional Commits (
feat:,fix:,docs:,test:,refactor:,chore:) - Push to your fork and open a pull request against this repo
- Tests pass (
pytest) - Code is formatted (
black,isort) - Type checking passes (
mypy) - Linting passes (
flake8) - Documentation is updated
- CHANGELOG.md is updated
Please include:
- A clear description of the issue
- Your environment (Python version, OS, package version)
- Minimal reproduction code
- Expected vs. actual behavior
- Full traceback if applicable
Please include the use case, a proposed solution, alternatives considered, and example usage.
- Check the Documentation
- Open a GitHub Issue
By contributing, you agree that your contributions will be licensed under the MIT License (see LICENSE).