Pre-commit hooks for Rust projects. Forked from {TODO}
Find a file
2020-07-05 07:59:53 +03:00
.pre-commit-config.yaml Use https instead of git protocol 2020-06-20 02:00:53 +02:00
.pre-commit-hooks.yaml Pass filenames with args 2020-06-20 02:46:24 +02:00
hooks.yaml Revert "Allow user to send args to cargo fmt, not just to rustfmt" 2020-04-30 21:11:24 -04:00
README.md Add fmt arguments example to readme 2020-06-20 03:04:58 +02:00

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', '--']