-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (52 loc) · 1.69 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (52 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.30
hooks:
- id: shellcheck
# Language-specific linters run as local hooks so they come from the
# flake's devShell (nixpkgs pin), keeping tool versions reproducible.
# `nix develop` (or direnv) must be active for these to resolve.
- repo: local
hooks:
- id: gofmt
name: gofmt
entry: gofmt -l -d -s
language: system
types: [go]
- id: golangci-lint
name: golangci-lint
# The go:embed directive in main.go references `dist/*`, which
# is produced by the Parcel build. Create a placeholder so the
# linter can type-check without running the full asset build.
entry: bash -c 'mkdir -p dist && touch dist/.placeholder && exec golangci-lint run ./...'
language: system
types: [go]
pass_filenames: false
- id: elm-format
name: elm-format
entry: elm-format --validate
language: system
files: \.elm$
- id: nixpkgs-fmt
name: nixpkgs-fmt
entry: nixpkgs-fmt --check
language: system
types: [nix]