2018-01-15 16:12:51 +01:00
|
|
|
repos:
|
2021-10-25 21:10:36 +03:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-09-09 12:38:43 +03:00
|
|
|
rev: v4.0.1
|
2018-01-15 16:12:51 +01:00
|
|
|
hooks:
|
2021-09-09 12:38:43 +03:00
|
|
|
# Git style
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-vcs-permalinks
|
|
|
|
|
- id: forbid-new-submodules
|
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
|
|
|
|
|
|
# Common errors
|
2018-01-15 16:12:51 +01:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: trailing-whitespace
|
2021-09-09 12:38:43 +03:00
|
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
|
- id: check-yaml
|
2018-01-15 16:12:51 +01:00
|
|
|
- id: check-merge-conflict
|
2018-04-21 11:22:47 +02:00
|
|
|
- id: check-executables-have-shebangs
|
2021-09-09 12:38:43 +03:00
|
|
|
|
|
|
|
|
# Cross platform
|
|
|
|
|
- id: check-case-conflict
|
2021-09-10 22:33:03 +03:00
|
|
|
- id: mixed-line-ending
|
|
|
|
|
args: [--fix=lf]
|
2021-09-09 12:38:43 +03:00
|
|
|
|
|
|
|
|
# Security
|
|
|
|
|
- id: detect-aws-credentials
|
|
|
|
|
args: ['--allow-missing-credentials']
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
|
|
|
|
|
|
2021-10-25 21:10:36 +03:00
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
2021-02-20 20:18:07 +01:00
|
|
|
rev: 2.1.5
|
2020-01-21 11:54:13 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: shfmt
|
|
|
|
|
args: ['-l', '-i', '2', '-ci', '-sr', '-w']
|