Skip to content

Commit e5fa610

Browse files
committed
OP#8486: Upgrade update-mypy-dependencies pre-commit hook and update mypy pre-commit dependencies
1 parent ba732b7 commit e5fa610

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ repos:
1919
hooks:
2020
- id: uv-lock
2121
- repo: https://github.com/OpenTrafficCam/dependency-update-pre-commit
22-
rev: v0.1.0
22+
rev: v0.2.0
2323
hooks:
2424
- id: update-mypy-dependencies
25+
args:
26+
- --optional-extras=inference_cpu
2527
- repo: https://github.com/PyCQA/flake8
2628
rev: 7.1.1
2729
hooks:
@@ -43,24 +45,26 @@ repos:
4345
- id: mypy
4446
entry: mypy .
4547
additional_dependencies:
48+
- --extra-index-url=https://download.pytorch.org/whl/cpu
49+
- --extra-index-url=https://download.pytorch.org/whl/cu128
4650
- av==13.0.0
4751
- black==25.1.0
48-
- coremltools==8.2; sys_platform == 'darwin'
52+
- coremltools==8.2; sys_platform == "darwin"
4953
- ffmpeg-python==0.2.0
5054
- fire==0.7.0
51-
- hatch-requirements-txt==0.4.1
5255
- ijson==3.3.0
5356
- interrogate==1.5.0
5457
- isort==5.13.2
5558
- more-itertools==10.7.0
5659
- moviepy==1.0.3
5760
- mypy==1.15.0
58-
- numpy==1.26.4; sys_platform == 'win32'
59-
- numpy==2.1.1; sys_platform != 'win32'
60-
- opencv-python==4.10.0.84
61+
- numpy==1.26.4; sys_platform == "win32"
62+
- numpy==2.1.1; sys_platform != "win32"
63+
- opencv-python-headless==4.10.0.84
6164
- pandas-stubs==2.3.2.250926
6265
- pandas==2.3.3
6366
- pre-commit==3.8.0
67+
- pytest-asyncio==1.3.0
6468
- pytest-cov==5.0.0
6569
- pytest==8.3.3
6670
- torchvision==0.22.1

0 commit comments

Comments
 (0)