Skip to content

Commit

Permalink
root: Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwuelker committed Jun 26, 2024
1 parent 66837df commit e3293a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
description: Validate formatting
entry: cargo fmt --all --check
language: system
types: [file, rust]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pre-commit
black==24.4.2
certifi==2023.7.22
charset-normalizer==3.3.2
Expand Down

0 comments on commit e3293a5

Please sign in to comment.