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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user