-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
38 lines (34 loc) · 1.08 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
---
ci:
autofix_prs: true
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: requirements-txt-fixer
name: Fix requirements*.txt
files: ^requirements.*\.txt$
- id: trailing-whitespace
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--width, '100']
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1 # or higher tag
hooks:
- id: yamllint
args: [--format, parsable, --strict, -d, '{line-length: {max: 100}}']
- repo: local
hooks:
- id: replace-yml-with-yaml
name: Federation entries must be .yaml, not .yml
entry: Federation entries must be .yaml, not .yml
files: ^src/instances/.*(?<!\.yaml)$
language: fail