Skip to content

Commit d265c08

Browse files
Add a .pre-commit config file
Avoid this CI error message: =====> .pre-commit-config.yaml is not a file
1 parent e226b89 commit d265c08

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
repos:
3+
- repo: https://github.com/executablebooks/mdformat
4+
# Do this before other tools "fixing" the line endings
5+
rev: 0.7.17
6+
hooks:
7+
- id: mdformat
8+
name: Format Markdown
9+
entry: mdformat # Executable to run, with fixed options
10+
language: python
11+
types: [markdown]
12+
args: [--wrap, "75", --number]
13+
additional_dependencies:
14+
- mdformat-toc
15+
- mdformat-beautysh
16+
# -mdformat-shfmt
17+
# -mdformat-tables
18+
- mdformat-config
19+
- mdformat-black
20+
- mdformat-web
21+
- mdformat-gfm
22+
- repo: https://github.com/adrienverge/yamllint.git
23+
rev: v1.33.0
24+
hooks:
25+
- id: yamllint
26+
args:
27+
- --no-warnings
28+
- -d
29+
- "{extends: relaxed, rules: {line-length: {max: 90}}}"

0 commit comments

Comments
 (0)