45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
|
|
default_stages: [ pre-commit ]
|
||
|
|
fail_fast: false
|
||
|
|
exclude: '^\.idea/'
|
||
|
|
|
||
|
|
repos:
|
||
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
|
rev: v5.0.0
|
||
|
|
hooks:
|
||
|
|
- id: trailing-whitespace
|
||
|
|
args: [ --markdown-linebreak-ext=md ]
|
||
|
|
- id: end-of-file-fixer
|
||
|
|
- id: mixed-line-ending
|
||
|
|
- id: check-merge-conflict
|
||
|
|
- id: check-added-large-files
|
||
|
|
- id: detect-private-key
|
||
|
|
- id: check-yaml
|
||
|
|
- id: check-toml
|
||
|
|
- id: check-json
|
||
|
|
|
||
|
|
- repo: local
|
||
|
|
hooks:
|
||
|
|
- id: nix-fmt-check
|
||
|
|
name: Check Nix Formatting
|
||
|
|
entry: make fmt-check
|
||
|
|
language: system
|
||
|
|
pass_filenames: false
|
||
|
|
files: \.nix$
|
||
|
|
stages: [ pre-commit ]
|
||
|
|
|
||
|
|
- id: nix-lint
|
||
|
|
name: Lint Nix Files
|
||
|
|
entry: make lint
|
||
|
|
language: system
|
||
|
|
pass_filenames: false
|
||
|
|
files: \.nix$
|
||
|
|
stages: [ pre-commit ]
|
||
|
|
|
||
|
|
- id: nix-flake-check
|
||
|
|
name: Run Nix Flake Checks
|
||
|
|
entry: make check
|
||
|
|
language: system
|
||
|
|
pass_filenames: false
|
||
|
|
files: \.(nix|lock)$
|
||
|
|
stages: [ pre-push ]
|