-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.53 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.53 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
repos:
- repo: https://github.com/doublify/pre-commit-clang-format
rev: 62302476d0da01515660132d76902359bed0f782
hooks:
- id: clang-format
types: [file]
files: \.(cc|c|h|cpp|hh)$
args: ["--style=file"]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- pygments
args: ["--config=.flake8"]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: ["--line-length=79"]
- repo: local
hooks:
- id: check-formatting
name: check-formatting
entry: python .check-formatting.py
language: system
args: ["--autofix", "--ignore-non-source"]
- repo: local
hooks:
- id: gnatformat
name: Run gnatformat
entry: gnatformat
args: ["--no-project"]
language: system
files: "^tools/gnatcov/.*\\.ad(b|s)$"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
files: \.py$
exclude: |
(?x)^(
doc/.+|
qualification/.+|
tools/.+|
testsuite/nexus_info\.py|
testsuite/altrun/.+|
testsuite/REST/.+|
testsuite/STR/.+|
testsuite/SUITE/tgen\.py
)$
additional_dependencies:
- types-PyYAML
- types-setuptools
- e3-testsuite
name: mypy-1.14.1