-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
83 lines (83 loc) · 2.09 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
exclude_types:
- json
- id: trailing-whitespace
- id: no-commit-to-branch
- id: debug-statements
- id: requirements-txt-fixer
- id: check-executables-have-shebangs
- id: detect-private-key
- repo: local
hooks:
- id: update-type-stubs
name: Check for Type Stubs and Update Config
entry: ./update_precommit.py
language: system
files: ^requirements.*\.txt$
stages:
- commit
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args:
- --profile
- black
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
entry: mypy .
additional_dependencies:
- black==24.8.0
- coremltools==7.2;
- geopandas==1.0.1
- ijson==3.3.0
- interrogate==1.5.0
- isort==5.13.2
- moviepy==1.0.3
- mypy==1.11.1
- numpy==1.26.4
- opencv-python==4.9.0.80
- pandas-stubs==2.2.2.240807
- pandas==2.2.2
- pre-commit==3.8.0
- pytest-cov==5.0.0
- pytest==8.3.2
- torch==2.3.1
- torchvision==0.18.1
- types-PyYAML
- types-flake8
- types-jsonschema
- types-setuptools
- types-tqdm
- types-ujson
- ultralytics==8.2.82
- yamllint==1.35.1
always_run: true
pass_filenames: false
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args:
- -c=./.yamllint.yaml
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck