-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
37 lines (36 loc) · 1.06 KB
/
.pre-commit-config.yaml
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
default_stages: [pre-commit]
fail_fast: true
default_language_version:
golang: system
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: jsonschema/api-docs.md
- id: detect-private-key
- repo: https://github.com/google/yamlfmt
rev: v0.14.0
hooks:
- id: yamlfmt
- repo: https://github.com/crate-ci/typos
# ensure this stays in this format, the auto-updater might update to something like typos-dict-v0.11.35 which is not correct
rev: v1.28.2
hooks:
- id: typos
- repo: local
hooks:
- id: format-graphql
name: Format GraphQL
description: This hook formats GraphQL schemas
entry: npx [email protected] --write=true
language: node
files: 'query/.*\.graphql$'
- repo: local
hooks:
- id: generate
name: Run Go Generate
description: This hook runs go generate on the project
entry: go-generate-fast ./...
language: golang
files: \.(go|graphql|tmpl)$