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.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

bot_formatter-0.1.3.tar.gz (9.6 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.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for bot_formatter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8eeb86b3ba8ead78e4c7ecb01950e86d71ef93477b9ec897f3b005dbc34c2069
MD5 a199a865bf678ce9a6db7f55664c0244
BLAKE2b-256 9397d0e7e83aa015dc10d67842d575bb055934d4cc04cbf62bd66d0faa05d75b

See more details on using hashes here.

Provenance

The following attestation bundles were made for bot_formatter-0.1.3.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.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

Hashes for bot_formatter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 666c046d90bb97e065f752bb1deb66eefb02ef29f5369fd4af4ce4dcfcac0453
MD5 a12a2e32daa4317df87b40ca16f69c1f
BLAKE2b-256 9370b90a1b17afdbb5296e7c0f3a45e31e4ce7a31ee1f277e1269cea810e9b9b

See more details on using hashes here.

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

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