This repository was archived by the owner on Apr 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
66 lines (66 loc) · 1.93 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
repos:
- repo: local
hooks:
- id: ruff
name: Format and lint with ruff
entry: ./bin/run-ruff.bash
language: system
types: [python]
pass_filenames: false
verbose: true
- id: mypy
name: Check typing with mypy
entry: ./bin/run-mypy.bash
language: system
types: [python]
pass_filenames: false
verbose: true
- id: pymarkdown
name: Markdownlint
description: Run markdownlint on Markdown files
entry: pymarkdown scan
language: python
files: \.(md|mdown|markdown)$
exclude: ^.github/pull_request_template.md$
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: mixed-line-ending
name: Check mixed line endings
entry: mixed-line-ending
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: check-merge-conflict
name: Check merge conflicts
entry: check-merge-conflict
language: system
- id: no-commit-to-branch
name: Check not committting to main
entry: no-commit-to-branch
language: system
args: ["--branch", "main"]
pass_filenames: false