Skip to content

Commit 92bfef8

Browse files
authored
Merge pull request #797 from OpenTrafficCam/bug/8486-extend-update-pre-commit-script-to-also-support-dependencies-listed-in-pyproject-toml
OP#8486: use pre-commit hook to update dependencies
2 parents c9f1b15 + d132b85 commit 92bfef8

File tree

2 files changed

+14
-289
lines changed

2 files changed

+14
-289
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@ repos:
1414
- id: requirements-txt-fixer
1515
- id: check-executables-have-shebangs
1616
- id: detect-private-key
17-
- repo: local
17+
- repo: https://github.com/OpenTrafficCam/dependency-update-pre-commit
18+
rev: v0.1.0
1819
hooks:
19-
- id: update-type-stubs
20-
name: Check for Type Stubs and Update Config
21-
entry: ./update_precommit.py
22-
language: system
23-
files: ^requirements.*\.txt$
24-
stages:
25-
- pre-commit
20+
- id: update-mypy-dependencies
2621
- repo: https://github.com/PyCQA/flake8
2722
rev: 7.3.0
2823
hooks:
@@ -45,31 +40,33 @@ repos:
4540
entry: mypy OTAnalytics tests --config-file=pyproject.toml
4641
additional_dependencies:
4742
- av==13.0.0
48-
- black==24.8.0
43+
- black==25.1.0
4944
- customtkinter==5.2.2
50-
- fastapi==0.116.2
51-
- hatch-requirements-txt==0.4.1
45+
- fastapi==0.128.0
5246
- ijson==3.3.0
5347
- interrogate==1.7.0
54-
- isort==5.13.2
48+
- isort==6.0.1
5549
- matplotlib==3.10.0
5650
- more-itertools==10.7.0
5751
- mypy==1.16.1
5852
- nicegui==2.24.1
5953
- numpy==2.1.1
6054
- opencv-python-headless==4.10.0.84
61-
- pandas-stubs==2.2.3.241126
55+
- pandas-stubs==2.3.2.250926
6256
- pandas==2.3.3
57+
- playwright==1.55.0
6358
- polars==1.32.3
6459
- pre-commit==4.1.0
6560
- pyarrow==21.0.0
6661
- pytest-asyncio==0.24.0
6762
- pytest-benchmark==5.1.0
68-
- pytest-cov==6.0.0
69-
- pytest-lazy-fixtures==1.1.2
63+
- pytest-cov==7.0.0
64+
- pytest-lazy-fixtures==1.4.0
65+
- pytest-playwright==0.7.1
66+
- pytest-timeout==2.4.0
7067
- pytest==8.3.4
71-
- starlette==0.48.0
72-
- twine==6.1.0
68+
- starlette==0.49.1
69+
- twine==6.2.0
7370
- types-PyYAML
7471
- types-flake8
7572
- types-openpyxl

update_precommit.py

Lines changed: 0 additions & 272 deletions
This file was deleted.

0 commit comments

Comments
 (0)