mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
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:
parent
bde9c7070e
commit
68024570fa
2 changed files with 6 additions and 0 deletions
2
.github/workflows/pre-commit.yml
vendored
2
.github/workflows/pre-commit.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue