Skip to content

⬆️ Update prek checks - #55

Merged
burgholzer merged 3 commits into
mainfrom
prek
Feb 2, 2026
Merged

⬆️ Update prek checks#55
burgholzer merged 3 commits into
mainfrom
prek

Conversation

@denialhaag

Copy link
Copy Markdown
Member

Description

This PR updates .pre-commit-config.yml to make use of prek's priority feature.

Checklist:

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

@denialhaag denialhaag self-assigned this Feb 2, 2026
@denialhaag denialhaag added dependencies Updates to project dependencies pre-commit labels Feb 2, 2026
@coderabbitai

coderabbitai Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@denialhaag has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 20 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📝 Walkthrough

Walkthrough

This pull request updates GitHub Actions CI workflow runners from ubuntu-latest to ubuntu-slim, enhances the ci.yml workflow with conditional job-skipping logic, performs a major restructuring of the pre-commit configuration with new hooks and priority levels, and updates project configuration ignore rules.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/ci.yml, .github/workflows/release-drafter.yml, .github/workflows/templating.yml
Updated job runners from ubuntu-latest to ubuntu-slim. Enhanced ci.yml with allowed-skips logic and jobs payload for conditional step execution.
Pre-commit Configuration
.pre-commit-config.yaml
Major restructuring: replaced initial uv-pre-commit reference with reorganized standard hooks, added new repositories (validate-pyproject, check-jsonschema, typos, cookie, bibtex-tidy, uv-lock, etc.), introduced priority levels and multi-phase approach (standard hooks, linting, final checks), and removed/replaced several existing hooks.
Project Configuration
pyproject.toml
Updated repository review ignore configuration to include PC170 for rST file handling.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 From ubuntu-latest to ubuntu-slim we hop,
With pre-commit hooks restructured top to top,
Priority phases bring order and grace,
New validators join the testing race!
Our workflows are nimble, our configs refined—
Infrastructure improvements we're happy to find! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is vague and uses a generic update indicator (⬆️). While it references 'prek checks', it does not convey what specifically is being updated or the purpose of the change. Replace with a more specific title that describes the actual change, such as 'Add priority levels to prek pre-commit hooks' or 'Update .pre-commit-config.yml with prek priority feature'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The description adequately explains the main change (updating .pre-commit-config.yml for prek's priority feature) and includes a completed checklist, though some items are intentionally unchecked with strikethrough. The core requirement is met.
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.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch prek

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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:
- Around line 143-164: Replace the current complex Python subprocess in the
ty-check hook's entry with a single uvx-invoked bash chain that runs uv sync
then uv run with && to short-circuit on failure; update the entry value for the
hook with id "ty-check" / name "ty check" to use uvx bash -c 'uv sync
--no-install-project --inexact && uv run --no-sync ty check' and keep the hook's
language as "unsupported" plus existing fields (require_serial, types_or,
exclude, priority) unchanged.

Comment thread .pre-commit-config.yaml
@denialhaag
denialhaag requested a review from burgholzer February 2, 2026 02:33
@burgholzer
burgholzer merged commit 44d78ec into main Feb 2, 2026
21 of 22 checks passed
@burgholzer
burgholzer deleted the prek branch February 2, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Updates to project dependencies pre-commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants