Files
NCBM 102c377adc deps: bump ruff to 0.17.2
The commit gateway pins its hooks to the same versions as pdm.lock (see
prek.toml), so both ruff pins move together and `pdm lock` follows.
0.17.2 finds nothing new in src or tests, and `prek run --all-files` is green
on it.
2026-10-24 03:24:44 +08:00

49 lines
1.3 KiB
TOML

# Commit gateway via prek (https://prek.j178.dev/) — drop-in pre-commit compatible.
# Install: uv tool install prek (or: pipx install prek)
# Wire git: prek install
# Manual: prek run --all-files
#
# Pin additional_dependencies to the same versions as pdm.lock (dev group).
# Bump these when you pdm update ruff / basedpyright.
default_install_hook_types = ["pre-commit"]
default_stages = ["pre-commit"]
default_language_version = { python = "python3.14" }
# Match CI / local pdm env (see pdm.lock).
repos = [
{
repo = "local",
hooks = [
{
id = "ruff-check",
name = "ruff check",
entry = "ruff check",
language = "python",
types_or = ["python", "pyi"],
args = [],
require_serial = true,
additional_dependencies = ["ruff==0.17.2"],
},
{
id = "ruff-format",
name = "ruff format",
entry = "ruff format --check --force-exclude",
language = "python",
types_or = ["python", "pyi"],
require_serial = true,
additional_dependencies = ["ruff==0.17.2"],
},
{
id = "basedpyright",
name = "basedpyright",
entry = "basedpyright",
language = "python",
pass_filenames = false,
require_serial = true,
additional_dependencies = ["basedpyright==1.40.2"],
},
],
},
]