-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
60 lines (56 loc) · 1.63 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: dotnet-tool-restore
name: dotnet-tool-restore
entry: dotnet tool restore
language: system
always_run: true
pass_filenames: false
stages:
- commit
- push
- post-merge
description: Install the .NET tools listed at .config/dotnet-tools.json.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: ^data/.*
- id: check-added-large-files
args: ['--maxkb=1000']
exclude: src/Infrastructure/Terminology/SnomedCodes.json
- id: check-json
exclude: ^data/.* | ^templates/.*
- id: detect-private-key
exclude: |
(?x)^(
data/.*|
.*TokenFactoryTests.cs
)$
- repo: https://github.com/dotnet/format
rev: v8.0.453106
hooks:
- id: dotnet-format
name: dotnet-format
language: system
entry: dotnet format --verbosity diagnostic --include
exclude: ^data/.*
types_or: ["c#"]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.86.0
hooks:
- id: terraform_fmt
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
hooks:
- id: markdownlint
files: \.(md|mdown|markdown)$
exclude: docs/pull_request_template.md
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.6.0
hooks:
- id: cspell
files: \.(md|mdown|markdown)$