Skip to content

Commit

Permalink
chore(local): add pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis Da Silva Campos committed Sep 2, 2020
1 parent 60c2d59 commit 811aaac
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.24.2
hooks:
- id: yamllint
args: [-c=./local/yamllint_config.yaml]

- repo: https://github.com/frnmst/md-toc
rev: master # or a specific git tag from md-toc
hooks:
- id: md-toc
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: (.github/CODEOWNERS|validator.bats)
9 changes: 9 additions & 0 deletions local/yamllint_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: default
ignore: |
.github/workflows/
venv/
rules:
line-length:
max: 120
comments-indentation: disable

0 comments on commit 811aaac

Please sign in to comment.