A formatter for Discord bots.
Project description
A formatter and language file validator for Python Discord bots.
- ✏️ Includes formatters for
Pycordanddiscord.py. - 📚 Format and compare YAML files.
- 📝 Supports Ezcord language files.
Installing
Python 3.10 or higher is required.
pip install bot-formatter
Usage
To format a file, run:
bot-formatter main.py
To format YAML language files in a directory, run:
bot-formatter --lang path/to/language/dir
To view all available options, run:
bot-formatter --help
For a full overview, see the documentation.
Pre-Commit
To use bot-formatter as a pre-commit hook, add the following lines to your .pre-commit-config.yaml:
- repo: https://github.com/CookieAppTeam/bot-formatter
rev: 0.1.3
hooks:
- id: bot-formatter
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bot_formatter-0.1.3.tar.gz.
File metadata
- Download URL: bot_formatter-0.1.3.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eeb86b3ba8ead78e4c7ecb01950e86d71ef93477b9ec897f3b005dbc34c2069
|
|
| MD5 |
a199a865bf678ce9a6db7f55664c0244
|
|
| BLAKE2b-256 |
9397d0e7e83aa015dc10d67842d575bb055934d4cc04cbf62bd66d0faa05d75b
|
Provenance
The following attestation bundles were made for bot_formatter-0.1.3.tar.gz:
Publisher:
python-publish.yml on CookieAppTeam/bot-formatter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bot_formatter-0.1.3.tar.gz -
Subject digest:
8eeb86b3ba8ead78e4c7ecb01950e86d71ef93477b9ec897f3b005dbc34c2069 - Sigstore transparency entry: 1191150932
- Sigstore integration time:
-
Permalink:
CookieAppTeam/bot-formatter@c481bb82d4c31c9dd53c12ae02d0cdf944cf42a5 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/CookieAppTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c481bb82d4c31c9dd53c12ae02d0cdf944cf42a5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file bot_formatter-0.1.3-py3-none-any.whl.
File metadata
- Download URL: bot_formatter-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
666c046d90bb97e065f752bb1deb66eefb02ef29f5369fd4af4ce4dcfcac0453
|
|
| MD5 |
a12a2e32daa4317df87b40ca16f69c1f
|
|
| BLAKE2b-256 |
9370b90a1b17afdbb5296e7c0f3a45e31e4ce7a31ee1f277e1269cea810e9b9b
|
Provenance
The following attestation bundles were made for bot_formatter-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on CookieAppTeam/bot-formatter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bot_formatter-0.1.3-py3-none-any.whl -
Subject digest:
666c046d90bb97e065f752bb1deb66eefb02ef29f5369fd4af4ce4dcfcac0453 - Sigstore transparency entry: 1191150943
- Sigstore integration time:
-
Permalink:
CookieAppTeam/bot-formatter@c481bb82d4c31c9dd53c12ae02d0cdf944cf42a5 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/CookieAppTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c481bb82d4c31c9dd53c12ae02d0cdf944cf42a5 -
Trigger Event:
release
-
Statement type: