Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 2.02 KB

CONTRIBUTING.md

File metadata and controls

50 lines (40 loc) · 2.02 KB

Contributing to PR-Agent

Thank you for your interest in contributing to the PR-Agent project!

Getting Started

  1. Fork the repository and clone your fork
  2. Install uv and Python 3.12 or higher (the interpreter and uv requirements declared in pyproject.toml)
  3. Install dependencies with uv sync (creates .venv from uv.lock)
  4. Create a new branch for your contribution:
    • For new features: git checkout -b feature/your-feature-name
    • For bug fixes: git checkout -b fix/issue-description
  5. Make your changes
  6. Write or update tests as needed
  7. Run tests locally to ensure everything passes:
    PYTHONPATH=. uv run pytest tests/unittest
    The end-to-end and health suites require provider tokens or API keys, so the unit suite is the default local check.
  8. Lint your changed files, then run the pre-commit hooks on them:
    uv run ruff check --fix <changed Python files>
    uvx pre-commit run --files <changed files>
  9. Commit your changes using conventional commit messages.
  10. Push to your fork and submit a pull request

Development Guidelines

  • Keep pull requests focused on a single feature or fix
  • Follow the existing code style and formatting conventions
  • Add unit tests for any new functionality using pytest
  • Ensure test coverage for your changes
  • Update documentation as needed

Pull Request Process

  1. Ensure your PR includes a clear description of the changes
  2. Link any related issues
  3. Update the README.md if needed
  4. Wait for review from maintainers

Build-and-test cancels earlier first-attempt CI runs for a pull request when a new push supersedes them. Runs on main and manual reruns remain independent.

Questions or Need Help?