forked from cocotb/cocotb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
43 lines (38 loc) · 984 Bytes
/
.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
# Copyright cocotb contributors
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
repos:
- repo: "https://github.com/psf/black"
rev: "22.1.0"
hooks:
- id: "black"
exclude: "^cocotb/_vendor"
args:
- "."
- repo: "https://github.com/pycqa/isort"
rev: "5.10.1"
hooks:
- id: "isort"
exclude: "^cocotb/_vendor"
args:
- "--profile=black"
- "."
- repo: "https://github.com/pycqa/flake8"
rev: "3.9.2"
hooks:
- id: "flake8"
exclude: "^cocotb/_vendor"
- repo: "https://github.com/pre-commit/mirrors-clang-format"
rev: "v13.0.0"
hooks:
- id: "clang-format"
exclude: "^cocotb/share/include/(sv_vpi|vhpi|vpi)_user(_ext)?.h"
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.1.0"
hooks:
- id: "trailing-whitespace"
- id: "mixed-line-ending"
args:
- "--fix=lf"
- id: "end-of-file-fixer"
exclude: "^documentation/source/diagrams/(svg|xml)/"