-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
35 lines (32 loc) · 1.01 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
repos:
- repo: local
hooks:
- id: check-readme-md
name: check if README.md is updated
description: Copy README.md file from documentation
entry:
bash -c "cmp --silent mkdocs_publisher_docs/README.md README.md ||
cp mkdocs_publisher_docs/README.md README.md"
language: system
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^(docs|mkdocs_publisher_docs/.obsidian)/
- id: trailing-whitespace
exclude: ^(docs|mkdocs_publisher_docs/.obsidian)/
- id: check-json
- id: check-toml
- repo: local
hooks:
- id: lint-yaml
name: lint YAML files
description: Format and check YAML files.
entry: poetry run yamllint
language: system
files: \.(yml|yaml)$