-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (83 loc) · 2.71 KB
/
.pre-commit-config.yaml
File metadata and controls
92 lines (83 loc) · 2.71 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# SPDX-FileCopyrightText: 2025 SeisSol Group
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-LicenseComments: Full text under /LICENSE and /LICENSES/
#
# SPDX-FileContributor: Author lists in /AUTHORS and /CITATION.cff
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
name: '[GENERIC] merge conflict check'
- id: check-symlinks
name: '[GENERIC] symlink check'
- id: destroyed-symlinks
name: '[GENERIC] detect broken symlinks'
- id: detect-private-key
name: '[GENERIC] detect private keys uploaded by accident'
- id: check-case-conflict
name: '[GENERIC] detect OS file naming case conflicts'
- id: check-executables-have-shebangs
name: '[GENERIC] check for shebangs in executable files'
- id: check-illegal-windows-names
name: '[GENERIC] detect illegal Windows file names'
- id: check-json
name: '[JSON] check'
- id: check-xml
name: '[XML] check'
- id: check-shebang-scripts-are-executable
name: '[GENERIC] check that shebang-containing files are executable'
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.18.1
hooks:
- id: markdownlint-cli2
name: '[MARKDOWN] lint'
#- repo: https://github.com/fsfe/reuse-tool
# rev: v6.0.0
# hooks:
# - id: reuse
# name: '[GENERIC] REUSE compatibiltiy'
#- repo: https://github.com/psf/black-pre-commit-mirror
# rev: 25.1.0
# hooks:
# - id: black
# files: ^(?!preprocessing|postprocessing)
# name: '[PYTHON] black'
#- repo: https://github.com/pycqa/isort
# rev: 6.0.1
# hooks:
# - id: isort
# files: ^(?!preprocessing|postprocessing)
# args: ["--profile", "black"]
# name: '[PYTHON] isort'
- repo: https://github.com/pycqa/bandit
rev: 1.8.6
hooks:
- id: bandit
args: ["--confidence-level", "high", "--severity-level", "high"]
name: '[PYTHON] bandit'
#- repo: https://github.com/pycqa/flake8
# rev: '7.3.0'
# hooks:
# - id: flake8
# files: ^(?!preprocessing|postprocessing)
# name: '[PYTHON] Flake8'
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: 'v1.0.0'
hooks:
- id: sphinx-lint
name: '[SPHINX/RST] sphinx lint'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v22.1.0'
hooks:
- id: clang-format
name: '[C++] clang-format'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
name: '[GENERIC] newline eof'
- id: trailing-whitespace
name: '[GENERIC] remove trailing whitespace'