Skip to content

Commit 67bcf38

Browse files
authored
Merge pull request freqtrade#11669 from freqtrade/update/pre-commit-hooks
Update pre-commit hooks
2 parents a8b313d + a98dd0e commit 67bcf38

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

.github/workflows/binance-lev-tier-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: python build_helpers/binance_update_lev_tiers.py
3535

3636

37-
- uses: peter-evans/create-pull-request@v7
37+
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3838
with:
3939
token: ${{ secrets.REPO_SCOPED_TOKEN }}
4040
add-paths: freqtrade/exchange/binance_leverage_tiers.json

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939

4040
- name: Install uv
41-
uses: astral-sh/setup-uv@v5
41+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
4242
with:
4343
enable-cache: true
4444
python-version: ${{ matrix.python-version }}
@@ -144,7 +144,7 @@ jobs:
144144
mypy freqtrade scripts tests
145145
146146
- name: Discord notification
147-
uses: rjstone/discord-webhook-notify@v1
147+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
148148
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
149149
with:
150150
severity: error
@@ -170,7 +170,7 @@ jobs:
170170
check-latest: true
171171

172172
- name: Install uv
173-
uses: astral-sh/setup-uv@v5
173+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
174174
with:
175175
enable-cache: true
176176
python-version: ${{ matrix.python-version }}
@@ -270,7 +270,7 @@ jobs:
270270
mypy freqtrade scripts
271271
272272
- name: Discord notification
273-
uses: rjstone/discord-webhook-notify@v1
273+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
274274
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
275275
with:
276276
severity: info
@@ -296,7 +296,7 @@ jobs:
296296
python-version: ${{ matrix.python-version }}
297297

298298
- name: Install uv
299-
uses: astral-sh/setup-uv@v5
299+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
300300
with:
301301
enable-cache: true
302302
python-version: ${{ matrix.python-version }}
@@ -363,7 +363,7 @@ jobs:
363363
shell: powershell
364364

365365
- name: Discord notification
366-
uses: rjstone/discord-webhook-notify@v1
366+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
367367
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
368368
with:
369369
severity: error
@@ -397,7 +397,7 @@ jobs:
397397
- uses: actions/setup-python@v5
398398
with:
399399
python-version: "3.12"
400-
- uses: pre-commit/[email protected]
400+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
401401

402402
docs-check:
403403
runs-on: ubuntu-22.04
@@ -421,7 +421,7 @@ jobs:
421421
mkdocs build
422422
423423
- name: Discord notification
424-
uses: rjstone/discord-webhook-notify@v1
424+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
425425
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
426426
with:
427427
severity: error
@@ -443,7 +443,7 @@ jobs:
443443
python-version: "3.12"
444444

445445
- name: Install uv
446-
uses: astral-sh/setup-uv@v5
446+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
447447
with:
448448
enable-cache: true
449449
python-version: "3.12"
@@ -501,14 +501,14 @@ jobs:
501501

502502
- name: Check user permission
503503
id: check
504-
uses: scherermichael-oss/[email protected]
504+
uses: scherermichael-oss/action-has-permission@136e061bfe093832d87f090dd768e14e27a740d3 # 1.0.6
505505
with:
506506
required-permission: write
507507
env:
508508
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
509509

510510
- name: Discord notification
511-
uses: rjstone/discord-webhook-notify@v1
511+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
512512
if: always() && steps.check.outputs.has-permission && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
513513
with:
514514
severity: info
@@ -580,7 +580,7 @@ jobs:
580580
merge-multiple: true
581581

582582
- name: Publish to PyPI (Test)
583-
uses: pypa/[email protected]
583+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
584584
with:
585585
repository-url: https://test.pypi.org/legacy/
586586

@@ -609,7 +609,7 @@ jobs:
609609
merge-multiple: true
610610

611611
- name: Publish to PyPI
612-
uses: pypa/[email protected]
612+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
613613

614614

615615
deploy-docker:
@@ -650,11 +650,11 @@ jobs:
650650
docker version -f '{{.Server.Experimental}}'
651651
652652
- name: Set up QEMU
653-
uses: docker/setup-qemu-action@v3
653+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
654654

655655
- name: Set up Docker Buildx
656656
id: buildx
657-
uses: docker/setup-buildx-action@v3
657+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 #v3.10.0
658658

659659
- name: Available platforms
660660
run: echo ${PLATFORMS}
@@ -703,7 +703,7 @@ jobs:
703703
build_helpers/publish_docker_arm64.sh
704704
705705
- name: Discord notification
706-
uses: rjstone/discord-webhook-notify@v1
706+
uses: rjstone/discord-webhook-notify@89b0bf43c2c8514f70d0dcba4a706b904e8a3112 #v1.0.4
707707
if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && (github.event_name != 'schedule')
708708
with:
709709
severity: info

.github/workflows/devcontainer-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
with:
2929
persist-credentials: false
3030
- name: Login to GitHub Container Registry
31-
uses: docker/login-action@v3
31+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
3232
with:
3333
registry: ghcr.io
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
3636
- name: Pre-build dev container image
37-
uses: devcontainers/[email protected]
37+
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.19
3838
with:
3939
subFolder: .github
4040
imageName: ghcr.io/${{ github.repository }}-devcontainer

.github/workflows/docker-update-readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
persist-credentials: false
1717

1818
- name: Docker Hub Description
19-
uses: peter-evans/dockerhub-description@v4
19+
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2
2020
with:
2121
username: ${{ secrets.DOCKER_USERNAME }}
2222
password: ${{ secrets.DOCKER_PASSWORD }}

.github/workflows/pre-commit-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Run auto-update
2929
run: pre-commit autoupdate
3030

31-
- uses: peter-evans/create-pull-request@v7
31+
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3232
with:
3333
token: ${{ secrets.REPO_SCOPED_TOKEN }}
3434
add-paths: .pre-commit-config.yaml

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343

4444
- repo: https://github.com/charliermarsh/ruff-pre-commit
4545
# Ruff version.
46-
rev: 'v0.11.5'
46+
rev: 'v0.11.6'
4747
hooks:
4848
- id: ruff
4949
- id: ruff-format
@@ -82,6 +82,6 @@ repos:
8282

8383
# Ensure github actions remain safe
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v1.5.2
85+
rev: v1.6.0
8686
hooks:
8787
- id: zizmor

0 commit comments

Comments
 (0)