Skip to main content

A formatter for Discord bots.

Project description

Bot Formatter

A formatter and language file validator for Python Discord bots.

  • ✏️ Includes formatters for Pycord and discord.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.1
  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

bot_formatter-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bot_formatter-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file bot_formatter-0.1.1.tar.gz.

File metadata

  • Download URL: bot_formatter-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bot_formatter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b0bc845d67f24a112142f5cf3971efaa39aecf0430a9c7149f6a385ee5e9936b
MD5 c1502b8c4deb76694a2f715172955cee
BLAKE2b-256 c5e2ba6cbce7d07fbe45ba6388130ea28f44ee71fe2870349a10de5cd7a9a543

See more details on using hashes here.

Provenance

The following attestation bundles were made for bot_formatter-0.1.1.tar.gz:

Publisher: python-publish.yml on CookieAppTeam/bot-formatter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bot_formatter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bot_formatter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bot_formatter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d198561bc265bb19531098160cdcf6efe0009582eba9c72983c5bf02fa63726
MD5 aae46987146ae697764ac0edb6bf0b75
BLAKE2b-256 772d36daf1037a7860ee75273ad310771e2dcfc19a9dab2a5dce3d983223576c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bot_formatter-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on CookieAppTeam/bot-formatter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page