2023-07-01 13:03:41 +02:00
|
|
|
# SPDX-FileCopyrightText: Public domain.
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-11-26 19:20:46 +01:00
|
|
|
rev: v4.5.0
|
2023-07-01 13:03:41 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
name: Check YAML files syntax
|
|
|
|
- id: check-toml
|
|
|
|
name: Check TOML files syntax
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
name: Check that executables have shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
name: Check that files with a shebang are executable
|
|
|
|
- id: debug-statements
|
|
|
|
name: Check for leftover debug statements
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
name: Remove obsolete byte order (BOM) UTF-8 markers
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
name: Ensure that files end with a newline
|
|
|
|
- id: trailing-whitespace
|
|
|
|
name: Ensure no trailing spaces at the end of lines
|
|
|
|
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
|
2024-06-02 04:58:01 +02:00
|
|
|
rev: v1.5.5
|
2023-07-01 13:03:41 +02:00
|
|
|
hooks:
|
|
|
|
- id: remove-crlf
|
|
|
|
name: Enforce LF instead of CRLF for newlines
|
|
|
|
- id: forbid-tabs
|
|
|
|
name: Check usage of spaces instead of tabs
|
|
|
|
exclude: "src/appendixes/references.bib"
|
|
|
|
|
|
|
|
- repo: https://github.com/doublify/pre-commit-rust
|
|
|
|
rev: v1.0
|
|
|
|
hooks:
|
|
|
|
- id: fmt
|
|
|
|
name: Format Rust code
|
|
|
|
- id: cargo-check
|
|
|
|
name: Check Rust code
|
|
|
|
|
|
|
|
- repo: https://github.com/fsfe/reuse-tool.git
|
2024-06-02 04:58:01 +02:00
|
|
|
rev: v3.0.2
|
2023-07-01 13:03:41 +02:00
|
|
|
hooks:
|
|
|
|
- id: reuse
|
|
|
|
name: Check copyright and license information
|
2023-07-12 17:19:26 +02:00
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: cargo-deny
|
|
|
|
name: Run cargo deny to check dependencies
|
|
|
|
language: system
|
|
|
|
entry: cargo-deny
|
|
|
|
args: ['check']
|
|
|
|
pass_filenames: false
|
2023-08-28 18:41:19 +02:00
|
|
|
- id: trufflehog
|
|
|
|
name: TruffleHog
|
|
|
|
description: Detect secrets in your data.
|
|
|
|
entry: bash -c 'podman run -v "$(pwd):/workdir" --rm docker.io/trufflesecurity/trufflehog:latest git file:///workdir'
|
|
|
|
language: system
|
|
|
|
stages: ["commit", "push"]
|