Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 530 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 530 Bytes

Rust hooks for pre-commit

Rust tools package for pre-commit.

Using rust tools with pre-commit

-   repo: https://github.com/doublify/pre-commit-rust
    rev: master
    hooks:
    -   id: fmt
    -   id: cargo-check
    -   id: cargo-test
    -   id: clippy

Passing arguments to rustfmt

-   repo: https://github.com/doublify/pre-commit-rust
    rev: master
    hooks:
    -   id: fmt
        args: ['--verbose', '--edition', '2018', '--']