-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (73 loc) · 2.65 KB
/
.pre-commit-config.yaml
File metadata and controls
86 lines (73 loc) · 2.65 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
ci:
autofix_commit_msg: 'chore: auto fixes from pre-commit hooks'
autoupdate_commit_msg: 'chore: pre-commit automatic update'
autoupdate_schedule: weekly
exclude: '^tests/embedding/assets/.*$|^tests/parts/.*$'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: b831c3dc5d27d9da294ae4e915773b99aa24a7c5 # frozen: v0.15.10
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 0f369d245750787ce34997d464ed9605391a5283 # frozen: v1.20.1
hooks:
- id: mypy
additional_dependencies: [types-requests, types-tqdm]
args: [--ignore-missing-imports]
exclude: ^(tests|examples|doc)/
- 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/codespell-project/codespell
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
args: ["--ignore-words-list", "addin", "--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt", "-w"]
exclude: "doc/styles/typos\\.toml"
- repo: https://github.com/ansys/pre-commit-hooks
rev: 680b297da7584a07eb7c92b6b4e9baf88ece3e0e # frozen: v0.6.0
hooks:
- id: add-license-headers
args:
- --start_year=2022
- id: tech-review
args:
- --product=mechanical
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: check-yaml
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: ed81924a8b1cecdaa570b072528fa80c9c4d6ccd # frozen: 0.37.1
hooks:
- id: check-github-workflows
# Disabling because of warnings
# - repo: https://github.com/zizmorcore/zizmor-pre-commit
# rev: ea2eb407b4cbce87cf0d502f36578950494f5ac9 # frozen: v1.23.1
# hooks:
# - id: zizmor
# args: ["--pedantic"]
# Security checks with bandit
- repo: https://github.com/PyCQA/bandit
rev: 92ae8b82fb422a639f0ed8d99e96cea769594e08 # frozen: 1.9.4
hooks:
- id: bandit
args: ['-c', 'pyproject.toml']
additional_dependencies: ['bandit[toml]']
- repo: https://github.com/asottile/pyupgrade
rev: 75992aaa40730136014f34227e0135f63fc951b4 # frozen: v3.21.2
hooks:
- id: pyupgrade
args: ['--py310-plus']
- repo: https://github.com/crate-ci/typos
rev: 141bf8d1d11823cd5dc44d6b3c17d83b19015bcb # frozen: v1
hooks:
- id: typos
args: ["--config", "doc/styles/typos.toml"]
exclude: "doc/styles/config/vocabularies"