# Black

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

You can enable the Black formatter with:

```shell
trunk check enable black
```

![black example output](https://577236045-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F61Ep9MrYBkJa0Yq3zS1s%2Fuploads%2Fgit-blob-af7388f51391cb8f0acac91ae0f0d6dc0998a202%2Fblack.gif?alt=media)

## 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)
