mirror of
https://github.com/mikeroyal/Self-Hosting-Guide
synced 2026-05-24 09:48:33 +00:00
Add pre-commit flow
This commit is contained in:
parent
305dc71da3
commit
6a1e435d0a
1 changed files with 33 additions and 0 deletions
33
.pre-commit-config.yaml
Normal file
33
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
files: ^(.*\.(py|json|md|sh|yaml|cfg|txt))$
|
||||
exclude: ^(\.[^/]*cache/.*|.*/_user.py)$
|
||||
repos:
|
||||
- repo: https://github.com/executablebooks/mdformat
|
||||
# Do this before other tools "fixing" the line endings
|
||||
rev: 0.7.17
|
||||
hooks:
|
||||
- id: mdformat
|
||||
name: Format Markdown
|
||||
entry: mdformat # Executable to run, with fixed options
|
||||
language: python
|
||||
types: [markdown]
|
||||
args: [--wrap, '75', --number]
|
||||
additional_dependencies:
|
||||
- mdformat-toc
|
||||
- mdformat-beautysh
|
||||
# -mdformat-shfmt
|
||||
# -mdformat-tables
|
||||
- mdformat-config
|
||||
- mdformat-black
|
||||
- mdformat-web
|
||||
- mdformat-gfm
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.5
|
||||
hooks:
|
||||
- id: codespell
|
||||
args:
|
||||
# - --builtin=clear,rare,informal,usage,code,names,en-GB_to_en-US
|
||||
- --builtin=clear,rare,informal,usage,code,names
|
||||
- --ignore-words-list=aci,master,jupyter,lite,ws,wan,hass,cmak,aks,tim,offen
|
||||
- --skip="./.*"
|
||||
- --quiet-level=2
|
||||
Loading…
Reference in a new issue