Skip to content

Commit

Permalink
chore: more custom hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Sep 5, 2023
1 parent 10926b8 commit 663a043
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ repos:
args: ["--indent=4", "--autofix"]
- id: check-added-large-files

# - repo: https://github.com/doublify/pre-commit-rust
# rev: v1.0
# hooks:
# - id: fmt
# - id: cargo-check
# - id: clippy

- repo: local
hooks:
- id: format
name: format
entry: bash -c 'cargo make format'
description: Format files with cargo make fmt.
entry: cargo make format
language: system
types: [rust]
pass_filenames: false
- id: lint
name: lint
entry: bash -c 'cargo make lint'
description: Lint files with cargo make lint.
entry: cargo make lint
language: system
types: [rust]
pass_filenames: false
- id: check
name: check
description: Check files with Cargo Check
entry: cargo check
language: system
types: [rust]
pass_filenames: false

0 comments on commit 663a043

Please sign in to comment.