mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-08 03:10:34 +00:00
try a local pre-commit hook instaed
This commit is contained in:
parent
23ff32dbc0
commit
89c6dacb60
1 changed files with 11 additions and 1 deletions
|
@ -16,10 +16,20 @@ repos:
|
|||
- id: trailing-whitespace
|
||||
- id: no-commit-to-branch
|
||||
args: ["--branch", "main"]
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: fmt
|
||||
name: cargo fmt
|
||||
description: format files with "cargo fmt"
|
||||
types:
|
||||
- rust
|
||||
language: rust
|
||||
entry: cargo fmt
|
||||
args:
|
||||
- --
|
||||
- repo: https://github.com/backplane/pre-commit-rust-hooks
|
||||
rev: v1.1.0
|
||||
hooks:
|
||||
- id: fmt
|
||||
- id: check
|
||||
- id: clippy
|
||||
- id: test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue