Handle F401 exclusions more granularly#4794
Conversation
|
For Util, the correct answer is probably to add things that are "module global" to |
|
Finally had a chance to go through this with some attention, LGTM. |
While that might be technically correct, I'd rather not "codefy" backwards-compatibility includes. If anything, I'd like to start implementing our own equivalent of the 3.13 Footnotes |
Yeah, thought about a decorator several times in the past. The one that appeared in 3.13 has a "backport" in |
I don't think we'd want to do that. |
|
Please don't force push. If we're commenting and you're changing we lose that history it's a hassle. |
We indeed have mechanisms for deprecating Python versions, but what I hope for is a means of deprecating functions/accessors based on SCons version. We probably couldn't use a 1-1 port of Python's |
What would that look like? We have EnsureSConsVersion() |
|
can we move deprecations somewhere else? it's an interesting topic as there are almost three layers to it, but shouldn't get in the way of this simple PR. |
Was originally going to be a separate stylistic dive, but this discrepancy caught my eye so I wanted to handle it now. This removes the per-file exclusions of
F401, instead handling them on a per-include basis. Also removed the exclusion from test files, as those are already explicitly setup to NOT get checked by RuffContributor Checklist:
CHANGES.txtandRELEASE.txt(and read theREADME.rst).