-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (57 loc) · 1.85 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
64 lines (57 loc) · 1.85 KB
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
# Pre-commit hooks for Hydra repository
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: ^(third_party/|sim/obj_dir/|build/|out/)
- id: end-of-file-fixer
exclude: ^(third_party/|sim/obj_dir/|build/|out/)
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=lf']
- repo: local
hooks:
- id: whitespace-check
name: Check tabs and trailing whitespace (SV/C/C++)
entry: ./scripts/check_whitespace.sh
language: script
pass_filenames: false
always_run: true
- id: docs-lint
name: Check Markdown links
entry: ./scripts/docs_lint.py
language: script
pass_filenames: false
files: '\.md$'
- id: todo-unique
name: Check for duplicate TODOs
entry: ./scripts/check_todo_unique.py
language: script
pass_filenames: false
files: 'docs/todo/todo_master\.md$'
- id: doc-touch-check
name: Check documentation freshness
entry: ./scripts/pre_commit_doc_touch.sh
language: script
pass_filenames: false
files: '\.md$'
stages: [commit]
- id: verilator-check
name: Verify Verilator version
entry: ./scripts/verilator_check.sh
language: script
pass_filenames: false
always_run: false
stages: [manual]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: ['--skip=third_party,build,obj_dir,.git', '--quiet-level=2']
exclude: ^(third_party/|build/|sim/obj_dir/|out/)