Repository navigation
Exempt CPython-derived files from Ruff 0.16's expanded defaults - #73
Merged
Merged
Conversation
Keeps backports/configparser/__init__.py and tests/test_configparser.py close to upstream to ease merges from the cpython branch. Also drops two noqa directives that are no longer needed. Ref jaraco/skeleton#210. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Let's file an issue with CPython to apply these "fixes" upstream. |
This was referenced Oct 18, 2026
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.
Ruff 0.16 expanded its default rule set (jaraco/skeleton#210). After the latest skeleton merge, the project-local files are fixed on main (460b716), but about 95 violations remain in the two CPython-derived files,
backports/configparser/__init__.pyandtests/test_configparser.py. Most are UP030/UP031/UP032 (format strings → f-strings), C4 comprehension rewrites, and a few RUF/SIM items.This PR adds
[lint.per-file-ignores](under# local) for those two files only. The goal is to keep them close to CPython so that merges from thecpythonbranch stay clean. It also drops two# noqa: C901directives that are now unused (RUF100).This needs a maintainer decision. The alternative is to apply the fixes (about 40 safe autofixes plus about 50 manual or unsafe ones) and accept more divergence from upstream, as the earlier delint commits did on a smaller scale. Until one of these lands, main stays red on these two files.
🤖 Generated with Claude Code