add black autoformat precommit hook

This commit is contained in:
Your Name 2023-01-11 22:06:34 -05:00 committed by Henri Dickson
parent 1970110c57
commit c4ddd80c52

12
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3.11