Skip to content

Commit 42d55bb

Browse files
committed
Use rust-enabled pre-commit configuration.
This should work on pre-commit.ci.
1 parent c53f0b8 commit 42d55bb

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ jobs:
2525
- uses: actions/setup-python@v5.0.0
2626
with:
2727
python-version: '3.12'
28-
- run: pip install -r .github/workflows/pre-commit-requirements.txt
28+
- name: Install pre-commit
29+
run: pip install -r .github/workflows/pre-commit-requirements.txt
30+
- name: Run pre-commit
2931
- run: pre-commit run --all-files
32+
- run: df -h

.pre-commit-config.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ ci:
33
autoupdate_branch: 'trunk'
44
autofix_prs: false
55

6+
default_language_version:
7+
rust: 1.78.0
8+
69
repos:
7-
- repo: https://github.com/backplane/pre-commit-rust-hooks
8-
rev: v1.1.0
10+
- repo: https://github.com/Young-Naive-Simple/pre-commit-rust/
11+
rev: 3a8de64acc969112746489e5ec1f0b13e00d871e
912
hooks:
1013
- id: fmt
11-
- id: check
14+
- id: cargo-check
1215
- id: clippy
1316
args:
1417
- --all-targets
@@ -25,10 +28,10 @@ repos:
2528
- id: check-yaml
2629
- id: check-case-conflict
2730
- id: mixed-line-ending
28-
- repo: https://github.com/rhysd/actionlint
29-
rev: v1.6.27
30-
hooks:
31-
- id: actionlint
31+
# - repo: https://github.com/rhysd/actionlint
32+
# rev: v1.6.27
33+
# hooks:
34+
# - id: actionlint
3235
- repo: https://github.com/astral-sh/ruff-pre-commit
3336
rev: 'v0.3.4'
3437
hooks:

src/cli/submit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn submit<W: Write>(
111111
}
112112
}
113113

114-
action_groups.push((&action, groups));
114+
action_groups.push((action, groups));
115115
}
116116

117117
if matching_action_count == 0 {

0 commit comments

Comments
 (0)