-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
53 lines (50 loc) · 1.4 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: |
(?x)(
\.svg$|
\.patch$|
verilog_rules.md$
)
- id: check-yaml
- id: check-toml
- id: check-ast
- id: check-added-large-files
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: debug-statements
- id: mixed-line-ending
# Format Python files
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black
language_version: python3.12
# Format Bazel files
- repo: https://github.com/warchant/pre-commit-buildifier
rev: 0.1.1
hooks:
- id: buildifier
args: [--version, "v7.3.1", -mode=fix]
exclude: \.patch$
- repo: https://github.com/mgottscho/verible-py.git
rev: v0.0-3824
hooks:
# Format Verilog files
- id: verible-verilog-format
args: [--inplace]
# Skip ChipStack-generated files
exclude: ^.*/fpv/
# Style lint Verilog files
- id: verible-verilog-lint
args: [--ruleset=default]
# Skip ChipStack-generated files
exclude: ^.*/fpv/