Add black to pre-commit configuration

[black] is a code formatter for Python that ships with sensible defaults
and requires no configuration.

[black]: https://black.readthedocs.io/en/stable/
This commit is contained in:
Jon Banafato
2019-11-17 16:50:07 -05:00
parent d55b2d4764
commit e5a634d805

View File

@@ -22,3 +22,10 @@ repos:
hooks:
- id: isort
additional_dependencies: ["toml"]
# Python code formatting
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.7