django-language-server/.pre-commit-config.yaml

54 lines
1.4 KiB
YAML

default_language_version:
rust: "1.86"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
args: ["--unsafe"] # breaks on .mkdocs.yml otherwise
- id: end-of-file-fixer
- id: mixed-line-ending
- 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:
- --
- id: check
name: cargo check
description: check the package for errors with "cargo check"
types:
- rust
language: rust
entry: cargo check
pass_filenames: false
- id: clippy
name: cargo clippy
description: check the package with "cargo clippy"
types:
- rust
language: rust
entry: cargo clippy
pass_filenames: false
- id: test
name: cargo test
description: run the tests with "cargo test"
types:
- rust
language: rust
entry: cargo test
pass_filenames: false