Skip to content

Commit

Permalink
Specify language_version in .pre-commit-hooks.yaml
Browse files Browse the repository at this point in the history
Since b78c938, 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
  • Loading branch information
jdufresne authored and ericwb committed Dec 15, 2020
1 parent 306f6fc commit 2690c5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 2690c5b

Please sign in to comment.