Skip to content

Commit 6f8e773

Browse files
Add strict-kwargs pre-commit hook in fix mode (#2215)
* Add strict-kwargs as a local pre-commit hook (dev dependency) * Fix strict-kwargs dev dependency alphabetical order * [pre-commit.ci lite] apply automatic fixes * Fix strict-kwargs dev dependency alphabetical order * Fix malformed dev dependencies list in pyproject.toml * [pre-commit.ci lite] apply automatic fixes * Bump strict-kwargs to 2026.5.18.post1 and revert Python changes * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 0ca042a commit 6f8e773

3 files changed

Lines changed: 105 additions & 78 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 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,16 @@ repos:
320321
- *uv_version
321322
stages: [pre-commit]
322323

324+
- id: strict-kwargs-fix
325+
name: strict-kwargs
326+
entry: uv run --extra=dev strict-kwargs fix
327+
language: python
328+
types_or: [python]
329+
additional_dependencies:
330+
- *uv_version
331+
stages: [pre-commit]
332+
require_serial: true
333+
323334
- id: interrogate-docs
324335
name: interrogate docs
325336
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
@@ -78,6 +78,7 @@ optional-dependencies.dev = [
7878
# Listed explicitly (despite being transitive via vws-python-mock) so that
7979
# [tool.uv.sources] can redirect to the CPU-only PyTorch index.
8080
# See: https://vws-python.github.io/vws-python-mock/installation.html#faster-installation
81+
"strict-kwargs==2026.5.18.post1",
8182
"torch>=2.5.1",
8283
"torchvision>=0.20.1",
8384
"ty==0.0.36",

0 commit comments

Comments
 (0)