Skip to main content
We welcome contributions to Agency Swarm! By contributing, you help improve the framework for everyone. Here’s how you can get involved:

Setting Up Your Development Environment

Prerequisites

  • Python 3.12 or higher
  • Pip
  • Git

Setup

  1. Clone the repository:
  2. Create and activate a virtual environment (recommended):
  3. Install dependencies including development tools:
  4. Install Pre-Commit Hooks:

Running Tests

Testing ensures that your contributions work as intended and do not break existing functionality.

Install Test Dependencies

Ensure all test dependencies are installed.

Run Tests

Run the test suite using Pytest.

Check Test Coverage

Check the test coverage to ensure comprehensive testing.

Submitting Changes

Create a branch for your work:
Commit your updates:
Push your branch:
Open a pull request on GitHub:

Code Style and Linting

This project uses ruff for linting and code formatting. Configuration for this tool can be found in pyproject.toml. Before committing your changes, please check and fix linting errors:
It’s recommended to install these tools in your development environment. If you followed the setup instructions, they should already be installed via: