-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
119 lines (119 loc) · 4.26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
repos:
- repo: local
hooks:
- id: generate-compilation-database-metadatadtype
name: Generate compilation database [metadatadtype]
files: metadatadtype/(meson\.build$|.*\.(c|h)$)
language: system
require_serial: true
entry: |
bash -c 'cd metadatadtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
fail_fast: false
- id: generate-compilation-database-asciidtype
name: Generate compilation database [asciidtype]
files: asciidtype/(meson\.build$|.*\.(c|h)$)
language: system
require_serial: true
entry: |
bash -c 'cd asciidtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
fail_fast: false
- id: generate-compilation-database-quaddtype
name: Generate compilation database [quaddtype]
files: quaddtype/(meson\.build$|.*\.(c|h)$)
language: system
require_serial: true
entry: |
bash -c 'cd quaddtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
fail_fast: false
- id: generate-compilation-database-unytdtype
name: Generate compilation database [unytdtype]
files: unytdtype/(meson\.build$|.*\.(c|h)$)
language: system
require_serial: true
entry: |
bash -c 'cd unytdtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
fail_fast: false
- id: generate-compilation-database-stringdtype
name: Generate compilation database [stringdtype]
files: stringdtype/(meson\.build$|.*\.(c|h)$)
language: system
require_serial: true
entry: |
bash -c 'cd stringdtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
fail_fast: false
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-tidy
name: clang-tidy [metadatadtype]
args: [-p=metadatadtype/build]
files: metadatadtype/(.*\.(c|h)$)
- id: clang-tidy
name: clang-tidy [quaddtype]
args: [-p=quaddtype/build]
files: quaddtype/(.*\.(c|h)$)
- id: clang-tidy
name: clang-tidy [unytdtype]
args: [-p=unytdtype/build]
files: unytdtype/(.*\.(c|h)$)
- id: clang-tidy
name: clang-tidy [stringdtype]
args: [-p=stringdtype/build]
files: stringdtype/(.*\.(c|h)$)
- id: clang-format
args: ['--no-diff', -i]
# - id: oclint
# - id: cppcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
types:
[
markdown,
yaml,
]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- id: isort
name: isort (cython)
types: [cython]
- id: isort
name: isort (pyi)
types: [pyi]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: 'black for asciidtype'
files: '^asciidtype/.*\.py'
- id: black
name: 'black for metadatadtype'
files: '^metadatadtype/.*\.py'
- id: black
name: 'black for mpfdtype'
files: '^mpfdtype/.*\.py'
- id: black
name: 'black for quaddtype'
files: '^quaddtype/.*\.py'
- id: black
name: 'black for stringdtype'
files: '^stringdtype/.*\.py'
- id: black
name: 'black for unytdtype'
files: '^unytdtype/.*\.py'