Skip to content

Migrate to prek similar to the other infrahub repos - #196

Open
ryanmerolle wants to merge 1 commit into
opsmill:mainfrom
ryanmerolle:migrate_to_prek
Open

Migrate to prek similar to the other infrahub repos#196
ryanmerolle wants to merge 1 commit into
opsmill:mainfrom
ryanmerolle:migrate_to_prek

Conversation

@ryanmerolle

@ryanmerolle ryanmerolle commented Aug 30, 2026

Copy link
Copy Markdown
  • Remove pre-commit from pyproject.toml
  • Add prek to pyproject.toml
  • Convert .pre-commit-config.yaml to prek.toml using uv run prek util yaml-to-toml

Summary by CodeRabbit

  • Chores
    • Updated development tooling to use prek for automated checks.
    • Preserved validation for formatting, linting, Markdown, configuration files, merge conflicts, large files, and private keys.
    • Updated the development dependency configuration accordingly.

@ryanmerolle
ryanmerolle requested a review from a team as a code owner August 30, 2026 22:02
@ryanmerolle
ryanmerolle requested a review from lancamat1 August 30, 2026 22:02
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e5ba7bb5-9e8b-4c03-b5da-8811742db854

📥 Commits

Reviewing files that changed from the base of the PR and between d2761c7 and dbfd237.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .pre-commit-config.yaml
  • prek.toml
  • pyproject.toml
💤 Files with no reviewable changes (1)
  • .pre-commit-config.yaml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The change replaces the pre-commit development dependency with prek. It adds pinned prek repositories for standard file checks, Ruff formatting and linting, and rumdl Markdown validation. The previous .pre-commit-config.yaml configuration is removed.

Merge Risk: ⚪ Minimal · up to dbfd2

This PR replaces the repository’s pre-commit tooling and configuration with prek while preserving the configured hooks; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: migrating from pre-commit to prek. It is concise and related to the stated objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)


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.

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.

1 participant