summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-01-14 14:59:08 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-01-14 14:59:08 +0000
commit4b8560563ad758a00ab7ab62b35dc7086139c7b5 (patch)
tree84a5be42ee3be4b0745d6266d2364d1272d2c795 /.pre-commit-config.yaml
parent67d9b5114e0044ea1135d1797241e883e7646646 (diff)
downloadnova-4b8560563ad758a00ab7ab62b35dc7086139c7b5.tar.gz
pre-commit: Use Python 3 to run checks
We need this otherwise flake8 will run in Python 2 mode, which results in syntax errors for Python 3-only syntax like kwarg-only functions. Change-Id: Id55dbce1d9a19ccaa4fe605985fb165e9b3ab48c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 33f8df5e33..988f8da592 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,4 +1,7 @@
---
+default_language_version:
+ # force all unspecified python hooks to run python3
+ python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0