You can automate black by using pre-commit hooks. These hooks will make sure that black is run on every single commit. Automation is great!
The pre-commit config file will look like this;
- repo: https://github.com/psf/black
- id: black
If you're interested in learning more about these; we've got a series of videos on pre-commit hooks.