mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-21 21:14:58 +08:00
7bdd9ff8b7
Match prek additional_dependencies and pyproject dev pins to pdm.lock (ruff==0.15.22, basedpyright==1.39.9). Format fix for ruff 0.15.22.
49 lines
1.4 KiB
TOML
49 lines
1.4 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.15.22"],
|
|
},
|
|
{
|
|
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.15.22"],
|
|
},
|
|
{
|
|
id = "basedpyright",
|
|
name = "basedpyright",
|
|
entry = "basedpyright",
|
|
language = "python",
|
|
pass_filenames = false,
|
|
require_serial = true,
|
|
additional_dependencies = ["basedpyright==1.39.9"],
|
|
},
|
|
],
|
|
},
|
|
]
|