forked from Cornerstone-OnDemand/modelkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.22 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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# - id: trailing-whitespace # TODO: enable this
# - id: end-of-file-fixer # TODO: enable this
- id: debug-statements
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
args: ["--target-version", "py38"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.6'
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
types: [python]
args: [] # TODO: enable this: "--check-untyped-defs"
# TODO: narrow tests exclusion down to: ^tests/testdata/typing/*$
exclude: |
(?x)^(
.vulture.py|
tests/.*
)$
additional_dependencies: [
pydantic==2.*,
types-python-dateutil,
types-requests,
types-urllib3,
types-redis,
types-cachetools,
types-tabulate
]
- repo: https://github.com/jendrikseipp/vulture
rev: v2.10
hooks:
- id: vulture
args: ["--min-confidence", "90", "modelkit", "bin", ".vulture.py"]