Skip to content

Commit

Permalink
ref: Add pre-commit hook for rustfmt (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed May 17, 2024
1 parent 2b0d1ee commit b15d546
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,14 @@ repos:
hooks:
- id: isort
name: isort (python)
- repo: local
hooks:
- id: cargo-fmt
name: format rust code
language: system
# keep in sync with Cargo.toml. There is no way to run cargo fmt for specific files
# https://github.com/rust-lang/rustfmt/issues/4485
entry: rustfmt --edition 2021
files: ^rust-arroyo/.*\.rs$
default_language_version:
python: python3.8

0 comments on commit b15d546

Please sign in to comment.