-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 984 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 984 Bytes
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
repos:
- repo: local
hooks:
- id: dotnet-tool-restore
name: Install .NET tools
entry: dotnet tool restore
language: system
always_run: true
pass_filenames: false
stages:
- pre-commit
- pre-push
- post-checkout
- post-rewrite
description: Install the .NET tools listed at .config/dotnet-tools.json.
- id: dotnet-build
language: system
stages: [pre-commit, pre-push]
always_run: true
pass_filenames: false
description: Build the .NET project to ensure it compiles without errors.
name: Run .NET build
entry: dotnet build --no-restore
- id: csharpier
name: Run CSharpier on C# files
entry: dotnet tool run csharpier
language: system
types:
- c#
args:
- format
description: CSharpier is an opinionated C# formatter inspired by Prettier.