62 lines
1.8 KiB

# SPDX-FileCopyrightText: Public domain.
# SPDX-License-Identifier: CC0-1.0
- repo:
rev: v4.5.0
- 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:
rev: v1.5.5
- 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:
rev: v1.0
- id: fmt
name: Format Rust code
- id: cargo-check
name: Check Rust code
- repo:
rev: v3.0.2
- id: reuse
name: Check copyright and license information
- repo: local
- id: cargo-deny
name: Run cargo deny to check dependencies
language: system
entry: cargo-deny
args: ['check']
pass_filenames: false
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: bash -c 'podman run -v "$(pwd):/workdir" --rm git file:///workdir'
language: system
stages: ["commit", "push"]