forked from openvinotoolkit/training_extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.36 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
51
52
53
54
55
56
default_language_version:
node: 16.15.0
ruby: 2.7.2
repos:
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.6.1"
hooks:
- id: mypy
files: '^(src/otx)/.*\.py'
additional_dependencies:
[
types-PyYAML,
attrs==21.2.*,
types-requests,
types-Deprecated,
types-docutils,
types_futures,
types-setuptools,
types-python-dateutil,
tokenize-rt==3.2.0,
]
args: [--disallow-untyped-calls]
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.3
hooks:
- id: hadolint
name: Lint Dockerfiles
description: Runs hadolint to lint Dockerfiles
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck # TODO remove this when all shell scripts have been removed from otx
# markdown linting
- 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.1.2"
hooks:
- id: ruff
args: [--fix]
- id: ruff-format