Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ci:
autofix_prs: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand All @@ -14,10 +16,30 @@ repos:
- id: trailing-whitespace
- id: no-commit-to-branch
args: ["--branch", "main"]
- repo: https://github.com/backplane/pre-commit-rust-hooks
rev: v1.1.0
- repo: local
hooks:
- id: fmt
- id: check
- id: clippy
- id: test
- id: fmt
name: cargo fmt
description: format files with "cargo fmt"
types:
- rust
language: rust
entry: cargo fmt
args:
- --
- id: check
name: cargo check
description: check the package for errors with "cargo check"
types:
- rust
language: rust
entry: cargo check
pass_filenames: false
- id: clippy
name: cargo clippy
description: check the package with "cargo clippy"
types:
- rust
language: rust
entry: cargo clippy
pass_filenames: false
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.83"
channel = "1.84"