nix-da/.pre-commit-config.yaml
nydragon c8ac1786bd
Some checks are pending
/ test (push) Waiting to run
chore(pre-commit): add deadnix
2025-04-04 22:44:29 +02:00

43 lines
968 B
YAML

default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
stages: [pre-commit]
- repo: local
hooks:
- id: nix-fmt
name: Check nix formatting
entry: nix fmt
language: system
files: .*\.nix$
stages: [pre-commit]
- id: prettier
name: Check css, scss, js, ts and yaml formatting
entry: prettier
language: system
files: .*\.(css|scss|js|ts|yaml)$
args: [--write]
stages: [pre-commit]
- id: typos
name: Check for typos
entry: typos
language: system
files: .*
exclude: .*\.(png|jpg|jpeg|age)
stages: [pre-commit]
- id: deadnix
name: Check for dead nix code
entry: deadnix
language: system
files: .+\.nix$
args: ["-e", "-l"]
stages: [pre-commit]