Skip to content

Commit 3c9afe6

Browse files
committed
pre-commit: Enable black
Since our pep8 tox env now runs pre-commit, we can ensure that black styling will be maintained. Change-Id: Ifad1d67a83c4979b4f4de71de0124613d1133560 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
1 parent 229791c commit 3c9afe6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ repos:
1717
- id: check-yaml
1818
files: .*\.(yaml|yml)$
1919
args: ['--unsafe']
20+
- repo: https://github.com/psf/black
21+
rev: 23.3.0
22+
hooks:
23+
- id: black
24+
args: ['-S', '-l', '79']
2025
- repo: https://github.com/PyCQA/bandit
2126
rev: 1.7.5
2227
hooks:

0 commit comments

Comments
 (0)