Skip to content

Commit

Permalink
ci: Run cargo fmt and clippy in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Apr 11, 2024
1 parent 95ba4ff commit 383c08a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ repos:
- repo: local
hooks:
- id: rustfmt
name: 'Run rustfmt'
name: 'Cargo fmt(nightly mode)'
language: 'rust'
entry: 'rustfmt'
entry: 'cargo +nightly fmt'
types: ['file', 'rust']
pass_filenames: false
- id: clippy
name: 'Cargo clippy'
language: 'rust'
types: ['file', 'rust']
entry: 'cargo clippy --workspace --all-targets --all-features --locked -- -Dwarnings'
pass_filenames: false
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.0
Expand Down

0 comments on commit 383c08a

Please sign in to comment.