Skip to content

⚙️ Configuration

There are several configuration options available. You can either pass them as command-line arguments or write them into your .pre-commit-config.yaml file.

Tip

For usage examples, see the Getting Started page.

Positional Arguments

Argument Description
files One or more files to format. When using pre-commit, this is provided automatically.

Options

Argument Description
--all -a Format all supported files in the current directory.
--lang-dir The language directory to check. YAML files in this directory will be compared.
--silent -s Disable all outputs.
--verbose -v Show detailed log messages.
--dry-run Check files without modifying them.

Formatters

For details on available formatters, see the Formatters page.

Argument Description
--lib {dpy,pycord,none} Enable formatters for Discord.py or Pycord. Defaults to none.
--ezcord Enable Ezcord formatters. Disabled by default.
--yaml --no-yaml Enable or disable YAML formatters. Enabled by default.