pre-commit: Enable black

Since our pep8 tox env now runs pre-commit, we can ensure that black
styling will be maintained.

Change-Id: Ie3d684cecf882498914f7726363e443d2d3e99a3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-05-05 11:35:18 +01:00
parent 48ff44f046
commit c946294bdd

View File

@ -21,6 +21,11 @@ repos:
rev: v1.1.1 rev: v1.1.1
hooks: hooks:
- id: doc8 - id: doc8
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
args: ['-S', '-l', '79']
- repo: local - repo: local
hooks: hooks:
- id: flake8 - id: flake8