Setup mark installation (#1)
This commit is contained in:
52
.pre-commit-config.yaml
Normal file
52
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
default_install_hook_types: ["pre-commit", "pre-push"]
|
||||
default_stages: ["commit"]
|
||||
minimum_pre_commit_version: 2.18.0
|
||||
repos:
|
||||
# Security
|
||||
- repo: https://github.com/Yelp/detect-secrets
|
||||
rev: v1.4.0
|
||||
hooks:
|
||||
- id: detect-secrets
|
||||
stages: ["commit", "push"]
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.18.2
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
stages: ["commit", "push"]
|
||||
# Markdown
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.39.0
|
||||
hooks:
|
||||
- id: markdownlint-fix
|
||||
# Yaml
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.35.1
|
||||
hooks:
|
||||
- id: yamllint
|
||||
stages: ["push"]
|
||||
# GitHub Actions
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.6.27
|
||||
hooks:
|
||||
- id: actionlint
|
||||
args: ["-pyflakes="]
|
||||
stages: ["push"]
|
||||
# Other
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: check-json
|
||||
stages: ["push"]
|
||||
- id: detect-private-key
|
||||
stages: ["commit", "push"]
|
||||
- id: end-of-file-fixer
|
||||
- id: mixed-line-ending
|
||||
args: ["--fix=lf"]
|
||||
- id: no-commit-to-branch
|
||||
- id: trailing-whitespace
|
||||
Reference in New Issue
Block a user