vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 3968bc8016611cdf9a84db68990f27624ab17889
parent ff66368cb6d3a49273450e311d25d32d324e9786
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sun,  4 Jul 2021 21:58:43 +0200

Merge pull request #1800 from BlackDex/pre-commit

Adding pre-commit config
Diffstat:
A.pre-commit-config.yaml | 37+++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+), 0 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -0,0 +1,37 @@ +--- +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: check-yaml + - id: check-json + - id: check-toml + - id: end-of-file-fixer + - id: check-case-conflict + - id: check-merge-conflict + - id: detect-private-key +- repo: local + hooks: + - id: fmt + name: fmt + description: Format files with cargo fmt. + entry: cargo fmt + language: system + types: [rust] + args: ["--", "--check"] + - id: cargo-test + name: cargo test + description: Test the package for errors. + entry: cargo test + language: system + args: ["--features", "sqlite,mysql,postgresql", "--"] + types: [rust] + pass_filenames: false + - id: cargo-clippy + name: cargo clippy + description: Lint Rust sources + entry: cargo clippy + language: system + args: ["--features", "sqlite,mysql,postgresql", "--", "-D", "warnings"] + types: [rust] + pass_filenames: false