Treat Ruff ignore comments as pragmas - #5261
Draft
Baltsat wants to merge 1 commit into
Draft
Conversation
Assisted-by: OpenAI Codex User-Request: build reviewed OSS contributions | codex:019f8d3f-8848-72b1-9e8c-c2c71648e981
Baltsat
force-pushed
the
codex/black-5260-ruff-ignore-pragma
branch
from
July 26, 2026 06:00
937e02d to
a04af92
Compare
Contributor
|
diff-shades results comparing this PR (a04af92) to main (db2e3e7):
|
Baltsat
marked this pull request as draft
July 26, 2026 15:21
Author
|
The current corpus run shows that the unconditional implementation changes stable output in 134 files. The issue spans two formatter paths: line-preservation via |
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.
Summary
# ruff:ignore[...]comments as Black pragmastype: ignoreruff:ignoreshould be processed as a pragma incontains_pragma_comment#5260Fixes #5260, closes #5266
Testing
pytest tests/test_trans.py tests/test_format.py -k ruffpre-commit run -aenv -u NO_COLOR tox -e py— 476 passed, 1 skipped; 73 Jupyter tests passedAI-assisted contribution
AI assistance was used for investigation, implementation, testing, and review. I reviewed the final diff and verified all reported commands locally.
Checklist
CHANGES.md.