Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 643 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 643 Bytes

Rust hooks for pre-commit

Forked from pre-commit-rust, with added support for multiple rust packages in subdirectories.

Rust tools package for pre-commit.

Using rust tools with pre-commit

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

Passing arguments to rustfmt

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