Skip to content

Commit 229ea1e

Browse files
committed
Add strict-kwargs as a local pre-commit hook (dev dependency)
1 parent 0ca042a commit 229ea1e

3 files changed

Lines changed: 106 additions & 78 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ci:
3838
- shfmt-docs
3939
- spelling
4040
- sphinx-lint
41+
- strict-kwargs-fix
4142
- vulture
4243
- vulture-docs
4344
- yamlfix
@@ -320,6 +321,17 @@ repos:
320321
- *uv_version
321322
stages: [pre-commit]
322323

324+
325+
- id: strict-kwargs-fix
326+
name: strict-kwargs
327+
entry: uv run --extra=dev strict-kwargs fix
328+
language: python
329+
types_or: [python]
330+
additional_dependencies:
331+
- *uv_version
332+
stages: [pre-commit]
333+
require_serial: true
334+
323335
- id: interrogate-docs
324336
name: interrogate docs
325337
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ optional-dependencies.dev = [
8080
# See: https://vws-python.github.io/vws-python-mock/installation.html#faster-installation
8181
"torch>=2.5.1",
8282
"torchvision>=0.20.1",
83+
"strict-kwargs==2026.5.18",
8384
"ty==0.0.36",
8485
"types-pyyaml==6.0.12.20260510",
8586
"vulture==2.16",

0 commit comments

Comments
 (0)