From da1c01e0dcd32c212be708c5af41e4702b25d2a5 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 14 Dec 2020 15:27:33 -0800 Subject: [PATCH] Specify language_version in .pre-commit-hooks.yaml Since b78c938c0bd03d201932570f5e054261e10c5750, the project no longer supports Python 2. pre-commit will use the system Python by default. On some systems, this could be Python 2. To avoid Python 2 usage, specify pre-commit always uses Python 3. Without this configuration, some projects have been forced to manually override this option. pre-commit docs: https://pre-commit.com/#overriding-language-version --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 68bbe024d..7035811a7 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,4 +3,5 @@ description: 'Bandit is a tool for finding common security issues in Python code' entry: bandit language: python + language_version: python3 types: [python]