forked from openmobilityfoundation/mds-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (28 loc) · 1005 Bytes
/
.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
ci:
autofix_commit_msg: "pre-commit autofix run"
autoupdate_commit_msg: "pre-commit autoupdate hooks"
repos:
- repo: local
hooks:
- id: spectral-lint-references
name: "spectral linter: references"
language: node
entry: npx spectral lint ./reference/**/*.yaml --ruleset .spectral.yaml
files: ^reference/|models/
additional_dependencies: ["@stoplight/[email protected]"]
types: [yaml]
- id: spectral-lint-models
name: "spectral linter: models"
language: node
entry: npx spectral lint ./reference/**/*.yaml --ruleset .spectral.models.yaml --fail-severity warn
files: ^reference/|models/
additional_dependencies: ["@stoplight/[email protected]"]
types: [yaml]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: check-yaml
args: ["--unsafe"]