mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-22 03:06:27 +00:00
91d70e6bb8
This adds pre-commit hooks installable using the provided Makefile as well as a new check to validate the version in the Cargo file matches the git tag. This will be useful as a check before pushing releases.
23 lines
584 B
YAML
23 lines
584 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-merge-conflict
|
|
- repo: https://github.com/doublify/pre-commit-rust
|
|
rev: 14b3e118cfc36fb87d8d9cbd1305a2238fd85868
|
|
hooks:
|
|
- id: fmt
|
|
- id: cargo-check
|
|
- id: clippy
|
|
- repo: https://github.com/IamTheFij/docker-pre-commit
|
|
rev: v2.0.0
|
|
hooks:
|
|
- id: docker-compose-check
|
|
- id: hadolint
|