Skip to content

Commit 811aaac

Browse files
author
Anis Da Silva Campos
committed
chore(local): add pre-commit hooks
1 parent 60c2d59 commit 811aaac

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: .pre-commit-config.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
repos:
3+
- repo: https://github.com/adrienverge/yamllint.git
4+
rev: v1.24.2
5+
hooks:
6+
- id: yamllint
7+
args: [-c=./local/yamllint_config.yaml]
8+
9+
- repo: https://github.com/frnmst/md-toc
10+
rev: master # or a specific git tag from md-toc
11+
hooks:
12+
- id: md-toc
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v2.0.0
15+
hooks:
16+
- id: check-added-large-files
17+
- id: check-case-conflict
18+
- id: check-executables-have-shebangs
19+
- id: check-json
20+
- id: check-merge-conflict
21+
- id: check-yaml
22+
- id: debug-statements
23+
- id: check-symlinks
24+
- id: detect-private-key
25+
- id: end-of-file-fixer
26+
- id: trailing-whitespace
27+
exclude: (.github/CODEOWNERS|validator.bats)

Diff for: local/yamllint_config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
ignore: |
4+
.github/workflows/
5+
venv/
6+
rules:
7+
line-length:
8+
max: 120
9+
comments-indentation: disable

0 commit comments

Comments
 (0)