Skip to content

Commit 4e6ebcb

Browse files
authored
[ci] update pre-commit hooks, use ocmmit SHAs for third-party GitHub Actions (#71)
1 parent 84a359c commit 4e6ebcb

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ updates:
55
directory: /
66
schedule:
77
interval: monthly
8+
# group updates in a single PR
89
groups:
910
ci-dependencies:
1011
patterns:

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
name: lint
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: pre-commit/action@v3.0.1
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1313
build:
1414
name: build
1515
needs: [lint]
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v3
21+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.1.0
2222
with:
2323
# 'driver: docker' allows one build to reuse images from a prior build
2424
# ref: https://github.com/docker/setup-buildx-action/issues/251
@@ -42,6 +42,6 @@ jobs:
4242
- lint
4343
steps:
4444
- name: Decide whether the needed jobs succeeded or failed
45-
uses: re-actors/alls-green@v1.2.2
45+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
4646
with:
4747
jobs: ${{ toJSON(needs) }}

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/pre-commit/mirrors-mypy
15-
rev: v1.14.1
15+
rev: v1.15.0
1616
hooks:
1717
- id: mypy
1818
args: ["--config-file", "pyproject.toml"]
@@ -21,7 +21,7 @@ repos:
2121
- types-requests
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
2323
# Ruff version.
24-
rev: v0.8.4
24+
rev: v0.11.6
2525
hooks:
2626
# Run the linter.
2727
- id: ruff
@@ -32,7 +32,7 @@ repos:
3232
args: ["--config", "pyproject.toml"]
3333
types_or: [python, jupyter]
3434
- repo: https://github.com/maxwinterstein/shfmt-py
35-
rev: v3.7.0.1
35+
rev: v3.11.0.2
3636
hooks:
3737
- id: shfmt
3838
args: ["--indent=4", "--space-redirects", "--write"]
@@ -42,11 +42,11 @@ repos:
4242
- id: shellcheck
4343
args: ["--exclude=SC2002"]
4444
- repo: https://github.com/adrienverge/yamllint
45-
rev: v1.35.1
45+
rev: v1.37.0
4646
hooks:
4747
- id: yamllint
4848
- repo: https://github.com/codespell-project/codespell
49-
rev: v2.3.0
49+
rev: v2.4.1
5050
hooks:
5151
- id: codespell
5252
additional_dependencies: [tomli]

0 commit comments

Comments
 (0)