From 3c9afe69bbb249b30e586fd0f8b3dd095d2cab48 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 8 May 2023 11:41:29 +0100 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70984e56e5..7905abdda2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,11 @@ repos: - id: check-yaml files: .*\.(yaml|yml)$ args: ['--unsafe'] + - repo: https://github.com/psf/black + rev: 23.3.0 + hooks: + - id: black + args: ['-S', '-l', '79'] - repo: https://github.com/PyCQA/bandit rev: 1.7.5 hooks: