Skip to content

Fix CI: ignore ruff CPY rules stabilized in today's ruff 0.16.0 - #514

Open
imbgar-roboflow wants to merge 1 commit into
mainfrom
brandongarcia/fix-ruff-016-cpy001
Open

Fix CI: ignore ruff CPY rules stabilized in today's ruff 0.16.0#514
imbgar-roboflow wants to merge 1 commit into
mainfrom
brandongarcia/fix-ruff-016-cpy001

Conversation

@imbgar-roboflow

Copy link
Copy Markdown
Contributor

Description

Main's check_code_quality went red today with CPY001 Missing copyright notice on 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 uses select = ["ALL"] with unpinned ruff in CI — so the new rule became enforced overnight. The repo doesn't use copyright headers, so this adds CPY to 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/mypy versions in the dev extra so toolchain releases can't break CI mid-day — happy to switch this PR to that (or do both).

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.
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