semvec/pypi-packages huggingface dataset:
badgie 0.15.2
Add all the badges with Badgie!
License: Apache-2.0
Requires Python: >=3.9
Keywords: badge, template, markdown

# Badgie

<!-- BADGIE TIME -->

[![pipeline status](https://gitlab.com/saferatday0/badgie/badges/main/pipeline.svg)](https://gitlab.com/saferatday0/badgie/-/commits/main)
[![coverage report](https://gitlab.com/saferatday0/badgie/badges/main/coverage.svg)](https://gitlab.com/saferatday0/badgie/-/commits/main)
[![latest release](https://gitlab.com/saferatday0/badgie/-/badges/release.svg)](https://gitlab.com/saferatday0/badgie/-/releases)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
[![cici enabled](https://img.shields.io/badge/%E2%9A%A1_cici-enabled-c0ff33)](https://gitlab.com/saferatday0/cici)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

<!-- END BADGIE TIME -->

Badgie scans the contents of your repository and adds badges based on what it
finds.

Badgie requires Git and will only run in Git repositories.

## Using Badgie

Install Badgie:

```bash
python3 -m pip install badgie
```

Add Badgie tags to your README:

```md
<!-- BADGIE TIME -->
<!-- END BADGIE TIME -->
```

Run Badgie:

```bash
badgie -w README.md
```

And enjoy magic badges:

```md
<!-- BADGIE TIME -->
<!-- END BADGIE TIME -->
```

### Use as a pre-commit hook

Badgie can be used as a pre-commit hook, so you can get fresh badges on every
commit.

Add the following to a `.pre-commit-config.yaml` file. Note the empty
`rev` tag:

```yaml
repos:
  - repo: https://gitlab.com/saferatday0/badgie
    rev: ""
    hooks:
      - id: badgie
```

Run `pre-commit autoupdate` to pin to the latest version:

```bash
pre-commit autoupdate
```

Run `pre-commit` directly or install as a hook:

```bash
# directly
pre-commit

# as a Git hook
pre-commit install
git commit -m "..."
```