pre-commit-rust/README.md
2020-06-20 03:04:58 +02:00

488 B

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

Passing arguments to rustfmt

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