## dependabro 

![LOGO](img/logo.png)

Dependabro is your bro for managing dependencies. 
It's a python script that helps you keep your dependencies up to date. 
It's a simple script that reads your terraform configuration and checks if there are any updates available for the modules you are using. 
If there are updates available, it will create a new branch with the updated dependencies and you will need to create a pull request.

### Requirements

- Python 3.9+
- git

#### Environment Variables

- `GITHUB_TOKEN` - GitHub token to create pull requests
- `CACHE_FILE` - Cache file to store the last checked versions
- `CACHE_DURATION` - Cache duration in seconds (default: 86400)
- `GITHUB_ORGANIZATION` - GitHub organization to create pull requests
- `TERRAFORM_INFRA_PATH` - Path to the terraform-infra repository configuration

### Installation

```bash
python -m venv env
source env/bin/activate
pip install -r requirements.txt
pip install --editable .
```

#### using pipx

```bash
pipx install .
```

### Usage

```bash
source env/bin/activate
dependabro --help
```

#### using pipx

```bash
dependabro --help
```
