-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (51 loc) · 1.67 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (51 loc) · 1.67 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: forbid-submodules
- id: mixed-line-ending
- id: fix-byte-order-marker
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
args: ["--profile", "black", "--thirdparty", "nest"]
- repo: https://github.com/psf/black
rev: 26.1.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
# explicitly add input files that are not "*.sh"
args: [
#
# note that these differ from arguments in .github/workflows/nestbuildmatrix.yml
# IF YOU READ THIS: recheck for consistency with `find . -iname "*.sh" -o -iname "*.sh.in"`
"build_support/check_forbidden_types.sh",
"build_support/format_all_c_c++_files.sh",
"build_support/install_csa-libneurosim.sh",
"build_support/install_music.sh",
"build_support/install_sionlib.sh",
"build_support/version_info.sh",
"cmake/CheckFiles/check_return_val.sh",
"pynest/examples/list_examples.sh",
"pynest/examples/run_examples.sh",
"testsuite/do_tests.sh",
"testsuite/junit_xml.sh",
]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.0
hooks:
- id: clang-format
types_or: [c++]
exclude: 'build/.*|thirdparty/.*'