forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
81 lines (81 loc) · 2.23 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
---
ci:
skip: [flake8]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
configure$|
.*\.ascii$|
.*\.asc$|
.*\.ref$|
raster3d/r3.null/testsuite/data/test_volume_.*|
mswindows/.*|
.*\.po$|
.*\.ps$|
.*\.svg$|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
- id: end-of-file-fixer
exclude: |
(?x)^(
configure$|
.*\.ascii$|
.*\.asc$|
.*\.ref$|
python/grass/pygrass/raster/testsuite/data/geology_cats|
mswindows/.*|
.*\.po$|
.*\.ps$|
.*\.svg$|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --preview]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint-fix
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black-jupyter
exclude: |
(?x)^(
python/libgrass_interface_generator/
)
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
exclude: |
(?x)^(
python/libgrass_interface_generator/|
.*/testsuite/.*
)
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
types_or: [c, c++, javascript, json, objective-c]
exclude: |
(?x)^(
man/jquery.fixedheadertable.min.js$|
.*\.ipynb$
)
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint