Skip to content

Conversation

@solababs
Copy link
Contributor

@solababs solababs commented Jan 29, 2026

Summary by CodeRabbit

  • Chores
    • Updated linting tool to the latest version for improved code quality checks.
    • Updated development dependencies to ensure compatibility with current tooling standards.

✏️ Tip: You can customize this high-level summary in your review settings.

@solababs solababs requested a review from a team as a code owner January 29, 2026 10:58
@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

Walkthrough

This pull request updates dependency specifications across two configuration files. The .pre-commit-config.yaml file updates the ruff-pre-commit hook revision from v0.11.9 to v0.14.10, which upgrades the version of the Ruff linter used during pre-commit checks. In pyproject.toml, the dev dependency specification is modified from "pre-commit>=2.20.0" to "prek>=0.3.0", affecting which package version is resolved during dependency installation. Both changes are configuration-only with no modifications to code logic or behavior.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'migrate from pre-commit to prek' accurately describes the main change: replacing the pre-commit dependency with prek in pyproject.toml, and updating the ruff-pre-commit hook version.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4241a53
Status: ✅  Deploy successful!
Preview URL: https://7a7c1c39.infrahub-sdk-python.pages.dev
Branch Preview URL: https://task-8225.infrahub-sdk-python.pages.dev

View logs

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff            @@
##           develop     #789   +/-   ##
========================================
  Coverage    80.36%   80.36%           
========================================
  Files          115      115           
  Lines         9865     9865           
  Branches      1504     1504           
========================================
  Hits          7928     7928           
  Misses        1415     1415           
  Partials       522      522           
Flag Coverage Δ
integration-tests 41.41% <ø> (ø)
python-3.10 51.38% <ø> (ø)
python-3.11 51.38% <ø> (+0.02%) ⬆️
python-3.12 51.36% <ø> (-0.03%) ⬇️
python-3.13 51.36% <ø> (-0.03%) ⬇️
python-3.14 53.01% <ø> (-0.03%) ⬇️
python-filler-3.12 24.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.pre-commit-config.yaml:
- Line 16: Replace the outdated hook id 'ruff' with the new 'ruff-check' in the
pre-commit config: locate the hook block that references rev: v0.14.10 and
change the line "- id: ruff" to "- id: ruff-check" (leave the existing
"ruff-format" formatter hook unchanged).

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.9
rev: v0.14.10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

ruff-pre-commit v0.14.10 release tag github

💡 Result:

ruff-pre-commit v0.14.10 exists as a GitHub release/tag in astral-sh/ruff-pre-commit (released 2025-12-18, commit 5ba58ac). [1]

Links:

Release (tag): https://github.com/astral-sh/ruff-pre-commit/releases/tag/v0.14.10
Tag (tree):    https://github.com/astral-sh/ruff-pre-commit/tree/v0.14.10
Ruff notes:    https://github.com/astral-sh/ruff/releases/tag/0.14.10

[1][2]

Sources: [1] https://github.com/astral-sh/ruff-pre-commit/releases/tag/v0.14.10, [2] https://github.com/astral-sh/ruff-pre-commit/tree/v0.14.10


🌐 Web query:

ruff-pre-commit breaking changes v0.11.9 to v0.14.10

💡 Result:

Between ruff-pre-commit v0.11.9 (May 9, 2025) and v0.14.10 (Dec 18, 2025), the practical breaking change in pre-commit configuration is:

  • Linter hook id renamed: ruffruff-check (formatter hook remains ruff-format). (github.com)

Minimal config change:

 repos:
 - repo: https://github.com/astral-sh/ruff-pre-commit
   rev: v0.14.10
   hooks:
-  - id: ruff
+  - id: ruff-check
   - id: ruff-format

If you were using fixes, keep the same args (just attach them to ruff-check instead of ruff). (github.com)

Citations:


🌐 Web query:

ruff-pre-commit changelog releases

💡 Result:

  • ruff-pre-commit “changelog / releases”: it’s tracked via the project’s GitHub Releases page (tags like v0.14.14, v0.14.13, etc.). The latest shown there is v0.14.14 (Jan 22), and each release points you to the corresponding Ruff release notes. [1]
  • Where the actual change details live: because ruff-pre-commit is essentially a wrapper that follows Ruff versions, the substantive changelog is typically in the linked Ruff release for the same version. [1]
  • Docs confirmation / how you pin versions: Ruff’s docs show using ruff-pre-commit with rev: v0.14.14 in .pre-commit-config.yaml. [2]

Sources:
[1] astral-sh/ruff-pre-commit releases page (GitHub)
[2] Ruff docs “Integrations → pre-commit”


🏁 Script executed:

cat -n .pre-commit-config.yaml

Repository: opsmill/infrahub-sdk-python

Length of output: 733


Update hook id from ruff to ruff-check on line 19.

The v0.14.10 tag exists and is valid, but between v0.11.9 and v0.14.10, the linter hook id was renamed from ruff to ruff-check. Update line 19 from - id: ruff to - id: ruff-check (the formatter hook ruff-format on line 22 requires no change).

Required change
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.14.10
    hooks:
-     - id: ruff
+     - id: ruff-check
        args: [--fix]
      - id: ruff-format
🤖 Prompt for AI Agents
In @.pre-commit-config.yaml at line 16, Replace the outdated hook id 'ruff' with
the new 'ruff-check' in the pre-commit config: locate the hook block that
references rev: v0.14.10 and change the line "- id: ruff" to "- id: ruff-check"
(leave the existing "ruff-format" formatter hook unchanged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants