Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): move Rust pre-commit hooks to local #217

Merged
merged 1 commit into from
Feb 17, 2025
Merged
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
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
Loading