Skip to content

Commit 08879cd

Browse files
authored
Create .pre-commit-config.yaml
1 parent ecf06dc commit 08879cd

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Keep it minimal and docs-friendly. Works on Linux/Windows.
2+
minimum_pre_commit_version: "3.5.0"
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.6.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: mixed-line-ending
10+
args: [--fix=lf]
11+
- id: check-yaml
12+
- id: check-json
13+
- id: check-merge-conflict
14+
- id: check-added-large-files
15+
- id: detect-private-key
16+
17+
# Markdown formatting/linting that plays nicely with GitHub
18+
- repo: https://github.com/executablebooks/mdformat
19+
rev: 0.7.17
20+
hooks:
21+
- id: mdformat
22+
additional_dependencies:
23+
- mdformat-gfm==0.3.5 # tables/task-lists
24+
- mdformat-frontmatter==2.0.6
25+
files: \.md$

0 commit comments

Comments
 (0)