From e5a634d8050ea7e9ba0dfa37b28b6712ce6ad6ed Mon Sep 17 00:00:00 2001 From: Jon Banafato Date: Sun, 17 Nov 2019 16:50:07 -0500 Subject: [PATCH] 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/ --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47976ea..fbdc1ed 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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