-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.45 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
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 #v4.0.1
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
exclude: ^.github/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0 #0.910
hooks:
- id: mypy
additional_dependencies: [types-requests]
exclude: ^.github/
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black, --filter-files]
exclude: ^.github/
- repo: https://github.com/pycqa/flake8
rev: 7.0.0 #4.0.1
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
exclude: ^.github/
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 #6.1.1
hooks:
- id: pydocstyle
files: "^inference_service/.*\\.py"
additional_dependencies: [toml]
exclude: ^.github/
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2 #v1.1.1
hooks:
- id: markdown-toc
files: ^README\.md$
args: [-i, --bullets, "*"]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1 #v0.2.0
hooks:
- id: markdownlint-cli2
exclude: ^.github/