Skip to content

Commit 8b3033d

Browse files
committed
chore: Remove unused pre-commit hooks
1 parent 2a0772e commit 8b3033d

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

.github/workflows/pr_pre-commit.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ name: pre-commit
44
on:
55
pull_request:
66

7-
env:
8-
CARGO_TERM_COLOR: always
9-
RUST_TOOLCHAIN_VERSION: "1.80.1"
10-
HADOLINT_VERSION: "v1.17.6"
11-
127
jobs:
138
pre-commit:
149
runs-on: ubuntu-latest
@@ -19,26 +14,6 @@ jobs:
1914
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2015
with:
2116
python-version: '3.12'
22-
- uses: dtolnay/rust-toolchain@master
23-
with:
24-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
25-
components: rustfmt,clippy
26-
- name: Setup Hadolint
27-
shell: bash
28-
run: |
29-
set -euo pipefail
30-
31-
LOCATION_DIR="$HOME/.local/bin"
32-
LOCATION_BIN="$LOCATION_DIR/hadolint"
33-
34-
SYSTEM=$(uname -s)
35-
ARCH=$(uname -m)
36-
37-
mkdir -p "$LOCATION_DIR"
38-
curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
39-
chmod 700 "${LOCATION_BIN}"
40-
41-
echo "$LOCATION_DIR" >> "$GITHUB_PATH"
4217
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
4318
with:
4419
extra_args: "--from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,3 @@ repos:
4949
rev: 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1
5050
hooks:
5151
- id: actionlint
52-
53-
- repo: https://github.com/hadolint/hadolint
54-
rev: b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
55-
hooks:
56-
- id: hadolint

0 commit comments

Comments
 (0)