Skip to content

ENH: Apply pre-commit checks only to tracked files#97

Merged
aylward merged 1 commit into
Project-MONAI:mainfrom
aylward:precommit_not_untracked
Jul 24, 2026
Merged

ENH: Apply pre-commit checks only to tracked files#97
aylward merged 1 commit into
Project-MONAI:mainfrom
aylward:precommit_not_untracked

Conversation

@aylward

@aylward aylward commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Updated automated type-checking configuration to run against selected staged files while preserving the existing project settings.

Copilot AI review requested due to automatic review settings July 24, 2026 21:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

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: 5cfcdfbf-b2e3-459f-87c3-b975fe4428ed

📥 Commits

Reviewing files that changed from the base of the PR and between 67a49e3 and 28d8a58.

📒 Files selected for processing (1)
  • .pre-commit-config.yaml

Walkthrough

The mypy pre-commit hook now uses staged-file selection with pyproject.toml, removing explicit src and tutorials targets and pass_filenames: false while retaining its dependencies.

Changes

mypy hook configuration

Layer / File(s) Summary
Staged-file mypy validation
.pre-commit-config.yaml
The hook now runs with staged filenames and the existing pyproject.toml configuration and dependencies.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: copilot

🚥 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 matches the main change by limiting pre-commit checks to version-controlled files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@aylward
aylward merged commit 6aa7f28 into Project-MONAI:main Jul 24, 2026
10 checks passed
@aylward
aylward deleted the precommit_not_untracked branch July 24, 2026 21:29
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.

2 participants