-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.22 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
# https://pre-commit.com/
# If you face issues with the DD default hooks:
# 1. Get the path to your current Datadog global hooks installation.
# $ git config --global core.hooksPath
# $ /usr/local/dd/global_hooks
# 2. Unset the global hooks path.
# $ git config --global --unset core.hooksPath
# 3. Run `pre-commit install`
# 4. Reset the global hooks path to point back at the DataDog global hooks installation.
# $ git config --global core.hooksPath /usr/local/dd/global_hooks
---
repos:
- repo: local
hooks:
- id: lint
name: Run linters
entry: ddev test -s
language: system
files: '.+\.py'
pass_filenames: false
- id: service_checks
name: Validate service checks
entry: ddev validate service-checks
language: system
files: '.*/assets/service_checks\.json'
pass_filenames: false
- id: labeler_config
name: Validate labeler config
entry: ddev validate labeler
language: system
files: '\.github/workflows/config/labeler\.yml'
pass_filenames: false
- id: metadata
name: Validate metadata files
entry: ddev validate metadata changed
language: system
files: '.*/metadata\.csv'
pass_filenames: false