Context
PR #492 added .pre-commit-config.yaml with pinned revs:
ruff-pre-commit: v0.15.2
deptry: 0.23.0
But pyproject.toml specifies looser ranges:
ruff = ">=0.2.1"
deptry = ">=0.16.0"
This can cause drift where poetry run ruff behaves differently from pre-commit run ruff.
Action
- Consider adding Renovate or Dependabot config for pre-commit hook updates
- Or pin pyproject.toml dev deps to match pre-commit revs
- Document the chosen strategy (loose ranges + pinned pre-commit is common, but should be intentional)
Ref: #492 (Copilot review comment)
Context
PR #492 added
.pre-commit-config.yamlwith pinned revs:ruff-pre-commit: v0.15.2deptry: 0.23.0But
pyproject.tomlspecifies looser ranges:ruff = ">=0.2.1"deptry = ">=0.16.0"This can cause drift where
poetry run ruffbehaves differently frompre-commit run ruff.Action
Ref: #492 (Copilot review comment)