forked from ansys/pyworkbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (41 loc) · 1.04 KB
/
.pre-commit-config.yaml
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
repos:
# Ruff linting and formatting
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.4
hooks:
# Run the linter
- id: ruff
args: [--fix]
- id: ruff-format
# Documentation linting
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.7.0]
# Documentation spelling
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
# Ansys pre-commit hooks
- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.3.1
hooks:
- id: add-license-headers
files: '(src|examples|tests)/.*\.(py)|\.(proto)'
args:
- --start_year=2023
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: check-yaml
- id: trailing-whitespace
# Validate GitHub actions syntax
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.3
hooks:
- id: check-github-workflows