Contributing¶
Contributions to pgraf are welcome! Here's how to get started.
Development Setup¶
- Fork the repository on GitHub
- Clone your fork locally:
- Install development dependencies:
- Set up pre-commit hooks:
- Start the development database:
Development Workflow¶
- Create a branch for your feature:
- Make your changes
- Run tests:
- Run type checking:
- Run linting:
- Format code:
- Commit your changes
- Push your branch and create a pull request
Code Style Guidelines¶
- Follow PEP-8 with 79 character line length (enforced by ruff)
- Use single quotes for strings, double quotes for docstrings
- Write Google-style docstrings
- Include type annotations for all functions and methods
- Run formatting with ruff before committing
Testing¶
- Write unit tests for all new functionality
- Ensure all tests pass before submitting a pull request
- Maintain test coverage above 90%