2020-01-28 16:12:40 +00:00
|
|
|
---
|
|
|
|
minimum_pre_commit_version: 1.15.2
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-08-11 16:26:07 +01:00
|
|
|
rev: v4.3.0
|
2020-01-28 16:12:40 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict # Check for files that contain merge conflict strings.
|
|
|
|
- id: trailing-whitespace # Trims trailing whitespace.
|
|
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
- id: mixed-line-ending # Replaces or checks mixed line ending.
|
|
|
|
args: [--fix=lf]
|
|
|
|
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
|
|
|
|
|
2022-08-10 16:49:09 +01:00
|
|
|
- repo: https://github.com/executablebooks/mdformat
|
|
|
|
rev: 0.7.14
|
|
|
|
hooks:
|
|
|
|
- id: mdformat
|
|
|
|
|
2020-12-08 22:22:46 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2022-08-11 16:26:07 +01:00
|
|
|
rev: 22.6.0
|
2020-12-08 22:22:46 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
2020-01-28 16:12:40 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: generate-actions-workflow
|
|
|
|
name: Generate Github Actions Workflow
|
|
|
|
entry: .github/workflows/templates/generate.py
|
|
|
|
pass_filenames: false
|
2022-08-11 14:40:07 +01:00
|
|
|
files: '^.github/workflows/.*$'
|
2020-01-28 16:12:40 +00:00
|
|
|
language: script
|
|
|
|
|
|
|
|
- id: shellcheck
|
|
|
|
name: Run ShellCheck against bootstrap-salt.sh
|
2022-03-15 10:20:49 +01:00
|
|
|
entry: koalaman/shellcheck-alpine:v0.7.0 shellcheck -s sh -f tty
|
2020-01-28 16:12:40 +00:00
|
|
|
files: 'bootstrap-salt\.sh'
|
|
|
|
language: docker_image
|