forked from mantidproject/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
106 lines (96 loc) · 3.1 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
106 lines (96 loc) · 3.1 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
default_language_version:
python: python3
exclude: ^$|instrument/
ci:
autofix_prs: true
repos:
# Run fast code improvement/checks before running PR specific helpers.
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: .patch$
- id: check-added-large-files
args: ['--maxkb=4096']
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
exclude: .md5$|^external/|^tools/|Testing/Tools/cxxtest
- id: trailing-whitespace
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format # format toml files
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.5
hooks:
- id: clang-format
exclude: Testing/Tools/cxxtest|tools|qt/icons/resources/
- repo: https://github.com/mantidproject/pre-commit-hooks.git
rev: 312eb3e59ed829275f3b87ece24a04f5345a7c6b
hooks:
- id: cmake-missing-pytest-files
# Exclude sphinx / template file
exclude: test_doctest.py|python_export_maker.py
- id: mantid-release-note-check
files: docs\/source\/release\/v\d+\.\d+\.\d+\/.*\/.*\.rst
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
#- id: cmake-lint <- not ready yet
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.5
hooks:
- id: rstcheck
additional_dependencies: [sphinx]
args: ["--config", ".rstcheck.project.cfg"]
exclude: |
(?x)^(
^docs/source/index.rst$| # this has a value filled in by something
^docs/source/concepts/FittingMinimizersComparisonDetailed.rst| # strange ranking tags
^docs/source/fitting/.*|
^docs/source/techniques/.*
)$
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm # github flavored markdown
- mdformat-myst # myst-parser
- mdformat-ruff # ruff format code snippets
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
# ruff must appear before black in the list of hooks
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
exclude: scripts/templates/reference/|Testing/Tools/cxxtest
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: local
hooks:
- id: pixi-deps
name: pixi-dependency-updater
language: python
entry: python tools/dependencies/pixi_dependency_updater.py
files: |
(?x)^(
^conda/recipes/mantid-developer/recipe.yaml$|
^conda/recipes/conda_build_config.yaml$|
^pixi.toml$|
^pixi.lock$
)$
additional_dependencies:
- pyyaml