-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.11 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
# IronCore Pre-commit Hooks
# See https://pre-commit.com for more information
repos:
# Verible SystemVerilog formatter
- repo: local
hooks:
- id: verible-format
name: Verible Format
entry: verible-verilog-format --inplace
language: system
files: \.(sv|v)$
types: [file]
# Verible SystemVerilog linter
- repo: local
hooks:
- id: verible-lint
name: Verible Lint
entry: verible-verilog-lint
language: system
files: \.(sv|v)$
types: [file]
args: [-rules=-line-length]
# Python formatting with Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Whitespace hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: \.(fst|vcd)$
- id: end-of-file-fixer
exclude: \.(fst|vcd)$
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=1000']
- id: mixed-line-ending
args: ['--fix=lf']