summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 11:41:29 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit3c9afe69bbb249b30e586fd0f8b3dd095d2cab48 (patch)
tree08002ec0bf2d5dd8acbf8a8d61a8e29ef0484b0c
parent229791cdb4d4a19e4270166550ec78d873453f60 (diff)
downloadpython-openstackclient-3c9afe69bbb249b30e586fd0f8b3dd095d2cab48.tar.gz
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>
-rw-r--r--.pre-commit-config.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 70984e56..7905abdd 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: