Contributing¶
Thank you for your interest in contributing to kalshi-py!
Development Setup¶
- Clone the repository
- Install development dependencies
- Install the package in development mode
Code Style¶
This project uses ruff for linting and formatting.
- Check code style:
uv run ruff check .
- Format code:
uv run ruff format .
- Fix issues:
uv run ruff check --fix .
Running Tests¶
Documentation¶
To build and serve the documentation locally:
Making Changes¶
- Create a feature branch
-
Make your changes
-
Follow the code style guidelines
- Add tests for new functionality
-
Update documentation as needed
-
Test your changes
- Commit your changes
- Push and create a pull request
Pull Request Guidelines¶
- Provide a clear description of the changes
- Include tests for new functionality
- Update documentation if needed
- Ensure all tests pass
- Follow the existing code style
Issues¶
If you find a bug or have a feature request, please:
- Check existing issues first
- Create a new issue with a clear description
- Include steps to reproduce (for bugs)
- Provide code examples (for feature requests)
License¶
By contributing to kalshi-py, you agree that your contributions will be licensed under the same license as the project.