Contributing
Thank you for your interest in contributing to pyscan-yb!
Prerequisites
Dev Setup
- Clone the repository:
- Create a virtual environment:
- Install in development mode:
Running Tests
Rust tests
Python tests
Code Style
This project uses the following tools for code quality:
| Tool | Purpose | Config |
|---|---|---|
cargo fmt |
Rust formatting | Default settings |
cargo clippy |
Rust linting | Default settings |
black |
Python formatting | target-version = ["py39"] |
isort |
Import sorting | profile = "black" |
ruff |
Python linting | line-length = 88, target-version = "py39" |
mypy |
Type checking | python_version = "3.9" |
Run all checks before submitting a PR:
Pull Request Guidelines
- Fork the repository and create a feature branch from
main. - Make your changes with clear, focused commits.
- Add tests for new functionality.
- Ensure all tests pass (
cargo testandpytest). - Run code style checks (see above).
- Open a pull request against
mainwith a clear description of what and why.