Skip to content

Commit f82dbe0

Browse files
committed
Add strict-kwargs via uv in pre-commit
1 parent 707baeb commit f82dbe0

2 files changed

Lines changed: 27 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
fail_fast: true
33

4-
.uv_version: &uv_version uv==0.11.7
4+
.uv_version: &uv_version uv==0.9.5
55

66
# See https://pre-commit.com for more information
77
# See https://pre-commit.com/hooks.html for more hooks
@@ -10,6 +10,7 @@ ci:
1010
# We use system Python, with required dependencies specified in pyproject.toml.
1111
# We therefore cannot use those dependencies in pre-commit CI.
1212
skip:
13+
- strict-kwargs-fix
1314
- actionlint
1415
- sphinx-lint
1516
- check-manifest
@@ -95,6 +96,7 @@ repos:
9596
- id: rst-backticks
9697

9798
stages: [pre-commit]
99+
98100
- repo: local
99101
hooks:
100102
- id: actionlint
@@ -299,6 +301,17 @@ repos:
299301
- *uv_version
300302
stages: [pre-commit]
301303

304+
- id: strict-kwargs-fix
305+
name: strict-kwargs
306+
entry: uv run --extra=dev strict-kwargs fix
307+
language: python
308+
types_or: [python]
309+
additional_dependencies:
310+
- *uv_version
311+
stages: [pre-commit]
312+
require_serial: true
313+
314+
302315
- id: doc8
303316
name: doc8
304317
entry: uv run --extra=dev -m doc8

pyproject.toml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,33 @@ optional-dependencies.dev = [
4343
"check-manifest==0.51",
4444
"deptry==0.25.1",
4545
"doc8==2.0.0",
46-
"doccmd==2026.5.6",
46+
"doccmd==2026.3.26.2",
4747
"freezegun==1.5.5",
4848
"furo==2025.12.19",
4949
"interrogate==1.7.0",
50-
"mypy[faster-cache]==2.1.0",
50+
"mypy[faster-cache]==1.20.1",
5151
"mypy-strict-kwargs==2026.1.12",
52-
"prek==0.4.0",
52+
"prek==0.3.9",
5353
"pydocstringformatter==0.7.5",
5454
"pydocstyle==6.3",
5555
"pygments==2.20.0",
5656
"pylint[spelling]==4.0.5",
5757
"pylint-per-file-ignores==3.2.1",
58-
"pyproject-fmt==2.21.2",
59-
"pyrefly==1.0.0",
60-
"pyright==1.1.409",
58+
"pyproject-fmt==2.21.1",
59+
"pyrefly==0.62.0",
60+
"pyright==1.1.408",
6161
"pyroma==5.0.1",
6262
"pytest==9.0.3",
6363
"pytest-asyncio==1.3.0",
64-
"pytest-beartype-tests==2026.4.26",
64+
"pytest-beartype-tests==2026.4.20",
6565
"pytest-cov==7.1.0",
6666
"pyyaml==6.0.3",
67-
"ruff==0.15.13",
67+
"ruff==0.15.11",
6868
# We add shellcheck-py not only for shell scripts and shell code blocks,
6969
# but also because having it installed means that ``actionlint-py`` will
7070
# use it to lint shell commands in GitHub workflow files.
7171
"shellcheck-py==0.11.0.1",
72-
"shfmt-py==4.0.0",
72+
"shfmt-py==3.12.0.2",
7373
"sphinx==9.1.0",
7474
"sphinx-copybutton==0.5.2",
7575
"sphinx-lint==1.0.2",
@@ -82,13 +82,14 @@ optional-dependencies.dev = [
8282
# See: https://vws-python.github.io/vws-python-mock/installation.html#faster-installation
8383
"torch>=2.5.1",
8484
"torchvision>=0.20.1",
85-
"ty==0.0.36",
86-
"types-requests==2.33.0.20260513",
85+
"strict-kwargs==2026.5.18",
86+
"ty==0.0.32",
87+
"types-requests==2.33.0.20260408",
8788
"vulture==2.16",
8889
"vws-python-mock==2026.2.22.3",
8990
"vws-test-fixtures==2023.3.5",
9091
"yamlfix==1.19.1",
91-
"zizmor==1.25.0",
92+
"zizmor==1.24.1",
9293
]
9394
optional-dependencies.release = [ "check-wheel-contents==0.6.3" ]
9495
urls.Documentation = "https://vws-python.github.io/vws-python/"

0 commit comments

Comments
 (0)