Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (68 loc) · 2.23 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (68 loc) · 2.23 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
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-yaml
exclude: '^\.cd/conda/meta\.yaml$' # conda recipe: Jinja, not YAML
- id: trailing-whitespace
# Expected output: tests diff against these byte for byte.
exclude: &expected-output |
(?x)^(
data/.*
| examples/F90/bufr_ecc-1284\.sh
| tests/asca_139\.t1\.ref
| tests/bufr_ecc-2300\.sh
| tests/bufr_ecc-313\.sh
| tests/bufr_ecc-433\.sh
| tests/bufr_ecc-690\.sh
| tests/bufr_ecc-875\.sh
| tests/bufr_filter_extract_area\.sh
| tests/bufr_filter_extract_datetime\.sh
| tests/bufr_filter_misc\.sh
| tests/bufr_get\.sh
| tests/filter_rules
| tests/grib_bitmap\.sh
| tests/grib_ecc-1212\.sh
| tests/grib_filter\.sh
| tests/grib_ieee\.sh
| tests/grib_indexing\.sh
| tests/grib_ls\.sh
| tests/grib_mars_keys1\.sh
| tests/grib_mars_keys2\.sh
| tests/grib_nearest_test\.sh
| tests/grib_step\.sh
| tests/mf\.rules
| tests/pseudo_budg\.sh
| tests/pseudo_diag\.sh
| tests/set_unexpandedDescriptors\.filter
| tests/taf\.sh
| tools/filter_rules
| tools/mf\.rules
)$
- id: end-of-file-fixer
exclude: *expected-output
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v23.1.1
hooks:
- id: clang-format
types_or: [c, c++]
exclude: |
(?x)^(
third_party/.*
| (.*/)?deprecated/.*
| fortran/grib_api_constants\.h
| fortran/grib_api_externals\.h
| fortran/grib_api_visibility\.h
| fortran/eccodes_visibility\.h
| fortran/eccodes_constants\.h
| src/eccodes/grib_yacc\.cc
| src/eccodes/grib_yacc\.h
| src/eccodes/grib_lex\.cc
)$
- repo: https://github.com/ecmwf/ci-infrastructure
rev: 599ecf49c518a0100cb3ec0bab0531168ca75eaa
hooks:
- id: check-ci-approval
- id: check-ci-result