Skip to content

Upgrade ruff to 0.16.5 and address new rules - #448

Open
oschwald wants to merge 2 commits into
mainfrom
greg/stf-1328-ruff-is-upgraded-in-github-python-repos
Open

Upgrade ruff to 0.16.5 and address new rules#448
oschwald wants to merge 2 commits into
mainfrom
greg/stf-1328-ruff-is-upgraded-in-github-python-repos

Conversation

@oschwald

@oschwald oschwald commented Sep 9, 2026

Copy link
Copy Markdown
Member

Dependabot's ruff 0.16 bump fails CI because 0.16 stabilized new rules and started formatting Python fences in Markdown. This PR bumps ruff and addresses the failures.

  • Bump ruff to 0.16.5 in uv.lock. The dependabot PR closes when this merges.
  • Ignore CPY001 (missing-copyright-notice). We do not want a copyright header on every file.

Each change is its own commit.

STF-1328

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated linting configuration to allow source files without copyright headers.

oschwald and others added 2 commits September 9, 2026 22:22
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ruff 0.16 stabilized this rule. We do not want a copyright header on
every source file.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 9, 2026 22:23

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 Sep 9, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 7242df6d-0208-4b39-8510-420fdfd62e71

📥 Commits

Reviewing files that changed from the base of the PR and between 4be1670 and 9e92b88.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The Ruff lint configuration now ignores CPY001. A comment states that copyright headers are not required on every file.

Changes

Ruff configuration

Layer / File(s) Summary
Ignore the copyright-header rule
pyproject.toml
The Ruff lint ignore list includes CPY001. A comment explains that copyright headers are not required on every file.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 9e92b

This change disables Ruff's per-file copyright-header check as intended, without altering application behavior or deployment behavior. No merge-blocking risk remains.

🚥 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 changes: upgrading Ruff to version 0.16.5 and addressing newly stabilized lint rules.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch greg/stf-1328-ruff-is-upgraded-in-github-python-repos

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

A rabbit checks the linting gate
CPY001 must now wait
No header crowns each file
The config hops in style
Clean checks bring a smile

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

Development

Successfully merging this pull request may close these issues.

2 participants