Merge remote-tracking branch 'origin/topic/timw/pre-commit-python-version'

* origin/topic/timw/pre-commit-python-version:
  Force pre-commit to use python 3.9

(cherry picked from commit 5637643798)
This commit is contained in:
Tim Wojtulewicz 2023-08-15 09:19:57 -07:00
parent bde9c7070e
commit 68024570fa
2 changed files with 6 additions and 0 deletions

View file

@ -11,4 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: pre-commit/action@v3.0.0

View file

@ -11,6 +11,10 @@ repos:
rev: 3.3.1.8
hooks:
- id: shfmt
# We force python3.9 since as of its current version `shfmt-py` has a
# `setup.cfg` not conforming to PEP639 (`license_file` instead of
# `license_files`) which triggers a warning with newer Python versions.
language_version: "3.9"
args: ["-w", "-i", "4", "-ci"]
- repo: https://github.com/pre-commit/mirrors-yapf