-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (57 loc) · 2.04 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
66 lines (57 loc) · 2.04 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
# NOTE: if the 'autoupdate_commit_msg' is changed, the changes must be adapted in label.yml
ci:
autofix_commit_msg: 'CHORE: Auto fixes from pre-commit hooks'
# Auto update set to quarterly in order to mainly leverage dependabot for pre-commit hook
# and avoid closing PRs every weeks.
autoupdate_schedule: quarterly
exclude: |
(?x)(
src/ansys/aedt/core/sbrplus/matlab/|
tests/system/.*/example_models/
)
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 01a675ea018f2fb714478a5ffb83fcea8374bb06 # frozen: v0.15.21
hooks:
- id: ruff-check
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt"]
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: debug-statements
- id: trailing-whitespace
# Validate GitHub workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 6b63472e72e1a91ed8a2f6d483790dfb644fa1d3 # frozen: 0.37.4
hooks:
- id: check-github-workflows
- repo: https://github.com/adamchainz/blacken-docs
rev: fda77690955e9b63c6687d8806bafd56a526e45f # frozen: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==26.5.1]
# This validates our pre-commit.ci configuration
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: 500543de231a91e6157db630075d70320709b834 # frozen: v1.6.1
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/ansys/pre-commit-hooks
rev: 55c5b6a5439abd847613579c6924da750e8b78b2 # frozen: v0.8.0
hooks:
- id: add-license-headers
exclude: |
(?x)^(
.*\.pyd |
.*\.py_build |
)$
files: '(src|examples|tests|doc)/.*\.(py)'
args:
- --custom_template=mit_license.jinja2
- --start_year=2021