Skip to content

Commit

Permalink
chore(ci): move Rust pre-commit hooks to local
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans authored Feb 17, 2025
1 parent 21a18a1 commit 3989afa
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,31 @@ repos:
rev: v1.1.394
hooks:
- id: pyright
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
- id: clippy
- repo: local
hooks:
- id: fmt
name: fmt
- id: cargo-check
name: cargo check
description: Check that Rust project can compile
entry: cargo +stable check
language: system
types: [rust]
args: []
pass_filenames: false
- id: cargo-fmt
name: cargo fmt
description: Format files with cargo fmt
entry: cargo +nightly fmt --
language: system
types: [rust]
args: []
- id: cargo-clippy
name: cargo clippy
description: Check files with cargo clippy
entry: cargo +stable clippy
language: system
types: [rust]
args: []
pass_filenames: false
- id: nbsetup
name: nbsetup
description: Add install preamble to Jupyter Notebooks
Expand Down

0 comments on commit 3989afa

Please sign in to comment.