Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 554 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 554 Bytes

Rust hooks for pre-commit

Rust tools package for pre-commit.

Using rust tools with pre-commit

repos:
  - repo: https://github.com/tylerjw/pre-commit-rust.git
    rev: v1.4
    hooks:
      - id: fmt
      - id: check
      - id: clippy
      - id: machete
      - id: sort

Passing arguments to rustfmt

repos:
  - repo: https://github.com/tylerjw/pre-commit-rust.git
    rev: v1.3
    hooks:
      - id: fmt
        args: ['--verbose', '--edition', '2018', '--']