43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
|
|
- repo: https://github.com/doublify/pre-commit-rust
|
|
rev: v1.0
|
|
hooks:
|
|
- id: clippy
|
|
- id: fmt
|
|
|
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
|
rev: v0.20.0
|
|
hooks:
|
|
- id: stylua
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.21.0
|
|
hooks:
|
|
- id: typos
|
|
args: ["--force-exclude"]
|
|
|
|
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
|
|
rev: v0.1.0
|
|
hooks:
|
|
- id: dockerfilelint
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: lua-definitions
|
|
name: Generate lua definitions
|
|
description: This hook generates up to date lua definitions.
|
|
entry: cargo run --release --bin generate_definitions
|
|
language: system
|
|
types: [rust]
|
|
pass_filenames: false
|