> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Black

> Discover Black, the Python code formatter.  Learn how to integrate it with Trunk Check for seamless coding style enforcement.

[**Black**](https://pypi.org/project/black/) is a formatter for Python.

You can enable the Black formatter with:

```shell theme={null}
trunk check enable black
```

<Frame caption="Black example output">
  <img src="https://mintcdn.com/trunk-4cab4936/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/black.gif?s=607d2efc12d29765fde6a0b993467cd1" alt="black example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/black.gif" />
</Frame>

## Auto Enabling

Black will be auto-enabled if any *Python, Jupyter or Python-interface* files are present.

## Links

* [Black site](https://pypi.org/project/black/)
* Black Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/black)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
