| 1 |
# Integrations |
| 2 |
|
| 3 |
```{toctree} |
| 4 |
--- |
| 5 |
hidden: |
| 6 |
--- |
| 7 |
|
| 8 |
editors |
| 9 |
github_actions |
| 10 |
source_version_control |
| 11 |
doctest_formatting |
| 12 |
``` |
| 13 |
|
| 14 |
_Black_ can be integrated into many environments, providing a better and smoother |
| 15 |
experience. Documentation for integrating _Black_ with a tool can be found for the |
| 16 |
following areas: |
| 17 |
|
| 18 |
- {doc}`Editor / IDE <./editors>` |
| 19 |
- {doc}`GitHub Actions <./github_actions>` |
| 20 |
- {doc}`Source version control <./source_version_control>` |
| 21 |
- {doc}`Doctest formatting <./doctest_formatting>` |
| 22 |
|
| 23 |
Editors and tools not listed will require external contributions. |
| 24 |
|
| 25 |
Patches welcome! ✨ 🍰 ✨ |
| 26 |
|
| 27 |
Any tool can pipe code through _Black_ using its stdio mode (just |
| 28 |
[use `-` as the file name](https://www.tldp.org/LDP/abs/html/special-chars.html#DASHREF2)). |
| 29 |
The formatted code will be returned on stdout (unless `--check` was passed). _Black_ |
| 30 |
will still emit messages on stderr but that shouldn't affect your use case. |
| 31 |
|
| 32 |
This can be used for example with PyCharm's or IntelliJ's |
| 33 |
[File Watchers](https://www.jetbrains.com/help/pycharm/file-watchers.html). |