Skip to content

Commit b3c1a7d

Browse files
committed
Add pre-commit flow
1 parent 68711de commit b3c1a7d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.pre-commit-config.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
files: ^(.*\.(py|json|md|sh|yaml|cfg|txt))$
3+
exclude: ^(\.[^/]*cache/.*|.*/_user.py)$
4+
repos:
5+
- repo: https://github.com/executablebooks/mdformat
6+
# Do this before other tools "fixing" the line endings
7+
rev: 0.7.17
8+
hooks:
9+
- id: mdformat
10+
name: Format Markdown
11+
entry: mdformat # Executable to run, with fixed options
12+
language: python
13+
types: [markdown]
14+
args: [--wrap, '75', --number]
15+
additional_dependencies:
16+
- mdformat-toc
17+
- mdformat-beautysh
18+
# -mdformat-shfmt
19+
# -mdformat-tables
20+
- mdformat-config
21+
- mdformat-black
22+
- mdformat-web
23+
- mdformat-gfm
24+
- repo: https://github.com/codespell-project/codespell
25+
rev: v2.2.5
26+
hooks:
27+
- id: codespell
28+
args:
29+
# - --builtin=clear,rare,informal,usage,code,names,en-GB_to_en-US
30+
- --builtin=clear,rare,informal,usage,code,names
31+
- --ignore-words-list=aci,master,jupyter,lite,ws,wan,hass,cmak,aks,tim,offen
32+
- --skip="./.*"
33+
- --quiet-level=2

0 commit comments

Comments
 (0)