-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
61 lines (54 loc) · 1.44 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
exclude: '.*\.(xml|drawio|svg|pgm)'
- id: trailing-whitespace
types: [text]
exclude: '.*\.(xml|drawio|svg|pgm)'
- id: check-added-large-files
args: ['--maxkb=200']
exclude: '^docs/source/theory/dsp/diagrams'
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [
--application-directories, '.:src',
--py38-plus,
--add-import, 'from __future__ import annotations',
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=88]
exclude: '.*/migen/.*'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.0 # Must match clang-format version
hooks:
- id: clang-format
- repo: local
hooks:
- id: signals.gtkw
name: Remove absolute paths from gtkw files
entry: ./hooks/gtkw.py
language: python
files: '.*\.gtkw$'