-
-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (68 loc) · 2.29 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (68 loc) · 2.29 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
default_stages: [pre-commit]
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
# the NIST CODATA tables are checked in byte-verbatim; nothing may rewrite them
exclude: ^scripts/codata/
- id: end-of-file-fixer
exclude: ^scripts/codata/
- id: check-yaml
args: [--unsafe] # mkdocs.yml uses !ENV and !!python/name: tags
- id: check-json
exclude: ^\.devcontainer/devcontainer\.json$ # JSONC (allows comments)
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
hooks:
- id: clang-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
additional_dependencies: ["cmakelang[YAML]"]
# - id: cmake-lint
# additional_dependencies: ["cmakelang"]
# exclude: "cmake/.*"
- repo: https://github.com/psf/black
rev: 26.3.1
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/isort
rev: 8.0.1
hooks:
- id: isort
args: [--profile, black, --multi-line, "3"]
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
hooks:
- id: markdownlint-cli2
exclude: ^docs/reference/systems_reference/
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
# Disable actionlint's embedded shellcheck on `run:` blocks: for our workflows it only
# reports GitHub Actions idioms (e.g. `>> $GITHUB_ENV` need not be quoted) and false
# positives on numeric `${{ matrix.* }}` values. The standalone shellcheck hook covers
# real shell scripts; actionlint still validates workflow syntax, expressions, and actions.
args: ["-shellcheck="]
exclude: ^docs/javascripts/