2022-05-13 22:58:09 +02:00
|
|
|
---
|
|
|
|
fail_fast: false
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.2.0
|
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: statix
|
|
|
|
name: statix
|
|
|
|
entry: statix check .
|
|
|
|
pass_filenames: false
|
|
|
|
language: system
|
|
|
|
- id: nixpkgs-fmt
|
|
|
|
require_serial: false
|
|
|
|
name: nixpkgs-fmt
|
|
|
|
entry: ./check-fmt
|
|
|
|
pass_filenames: false
|
|
|
|
language: system
|
|
|
|
- id: flake-check
|
|
|
|
require_serial: false
|
|
|
|
name: nix flake check
|
|
|
|
entry: nix flake check --impure
|
|
|
|
pass_filenames: false
|
|
|
|
files: "flake.nix"
|
|
|
|
language: system
|
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
|
|
rev: v0.5.0
|
|
|
|
hooks:
|
|
|
|
- id: go-fmt
|
|
|
|
- id: go-vet
|
|
|
|
- id: go-lint
|
|
|
|
- id: go-imports
|
|
|
|
- id: go-cyclo
|
|
|
|
args: [-over=15]
|
|
|
|
- id: golangci-lint
|
|
|
|
- id: go-unit-tests
|
|
|
|
- id: go-build
|
|
|
|
- id: go-mod-tidy
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: nix-build
|
2022-05-16 13:56:26 +02:00
|
|
|
name: nix build
|
|
|
|
entry: nix build .#go-xkcdreader
|
2022-05-13 22:58:09 +02:00
|
|
|
pass_filenames: false
|
|
|
|
language: system
|