-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
50 lines (45 loc) · 1.2 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
48
49
50
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--line-length, "120"]
files: '^(openvino_xai|tests)/.*\.py'
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
hooks:
- id: mypy
files: '^(openvino_xai)/.*\.py'
additional_dependencies:
[
types-PyYAML,
attrs==21.2.*,
types-requests,
types-Deprecated,
types-docutils,
types_futures,
types-python-dateutil,
tokenize-rt==3.2.0,
]
args: [--no-strict-optional, --ignore-missing-imports]
# markdownlint-cli
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
args: [--config=.markdownlint.yaml]
# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.3.7"
hooks:
- id: ruff
exclude: "tests"
args: [--fix, --ignore, "E501"]