summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-05-28 11:09:55 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-05-28 11:11:06 +0200
commit801ddfdc83a23425e862e5fdd10563a49c35febd (patch)
treec0f5c39d067d9f60bfec3f8f40b4c60c54eab79a
parent4dc413b059983a1b50bd781fd88e0999044f66c8 (diff)
Add pre-commit
-rw-r--r--.pre-commit-config.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..b151c45
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,30 @@
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.4.0
+ hooks:
+ - id: check-yaml
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+ - id: check-case-conflict
+ - id: check-merge-conflict
+ - id: check-executables-have-shebangs
+ - repo: https://github.com/igorshubovych/markdownlint-cli
+ rev: v0.33.0
+ hooks:
+ - id: markdownlint
+ - repo: https://github.com/Lucas-C/pre-commit-hooks
+ rev: v1.5.1
+ hooks:
+ - id: forbid-tabs
+ - repo: https://github.com/adrienverge/yamllint
+ rev: v1.30.0
+ hooks:
+ - id: yamllint
+ - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
+ rev: v0.1.0
+ hooks:
+ - id: dockerfilelint
+ - repo: https://github.com/syntaqx/git-hooks
+ rev: v0.0.17
+ hooks:
+ - id: shellcheck