Fix CI: ignore ruff CPY rules stabilized in today's ruff 0.16.0 - #514
Open
imbgar-roboflow wants to merge 1 commit into
Open
Fix CI: ignore ruff CPY rules stabilized in today's ruff 0.16.0#514imbgar-roboflow wants to merge 1 commit into
imbgar-roboflow wants to merge 1 commit into
Conversation
ruff 0.16.0 (released 2026-07-23) stabilized the flake8-copyright rules, so select = ["ALL"] now enforces CPY001 and CI's unpinned ruff flags all 72 source files (no file carries a copyright header in this repo). Main is red since today's release; adding CPY to the ignore list restores the previous behavior. Verified: make check_code_quality green on ruff 0.16.0 + mypy 2.3.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Main's
check_code_qualitywent red today withCPY001 Missing copyright noticeon all 72 source files (first failing run: c731b4e; the prior run passed this morning).Cause: ruff 0.16.0 released today stabilized the
flake8-copyright(CPY) rules, and this repo's config usesselect = ["ALL"]with unpinned ruff in CI — so the new rule became enforced overnight. The repo doesn't use copyright headers, so this addsCPYto the existing ignore list (one line).Verified locally on ruff 0.16.0 + mypy 2.3.0:
make check_code_quality→ no issues in 72 files.Alternative if preferred: pin
ruff/mypyversions in thedevextra so toolchain releases can't break CI mid-day — happy to switch this PR to that (or do both).