Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coolcat467/badgie
Badgie fork
https://github.com/coolcat467/badgie
badge badge-generator badgelife badges badges-markdown
Last synced: 28 days ago
JSON representation
Badgie fork
- Host: GitHub
- URL: https://github.com/coolcat467/badgie
- Owner: CoolCat467
- License: mit
- Created: 2023-11-19T08:25:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-12T01:55:52.000Z (2 months ago)
- Last Synced: 2024-10-14T15:38:41.242Z (2 months ago)
- Topics: badge, badge-generator, badgelife, badges, badges-markdown
- Language: Python
- Homepage:
- Size: 157 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Badgie Fork
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/CoolCat467/badgie/main.svg)](https://results.pre-commit.ci/latest/github/CoolCat467/badgie/main)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![code style: black](https://img.shields.io/badge/code_style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)Add all the badges with Badgie!
### This is a fork
The original project can be found here:
https://gitlab.com/brettops/tools/badgie/## Using Badgie
Install Badgie:
```bash
pip install badgie
```Add Badgie tags to your README.md:
```md
```
Add Badgie tags to your README.rst:
```rst
..
..
```Run Badgie:
```bash
badgie -w README.md
```And enjoy magic badges:
```md
[![pipeline status](brettops/containers/verible/badges/main/pipeline.svg)](brettops/containers/verible/-/commits/main)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)```
### 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 your `.pre-commit-config.yaml` file.
```yaml
repos:
- repo: https://github.com/CoolCat467/badgie
rev: v0.9.5
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 "..."
```## Caveats
Badgie makes decisions on the assumption that you do sensible things with your
repository structure. It does not try to work around bad practices. Pull requests that
encourage this will be rejected.