Skip to content

Align pre-commit hook versions with pyproject.toml dev dependency ranges #524

@turbomam

Description

@turbomam

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions