-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make patchcheck: Allow Tabs in Some Cases #92266
Comments
Why not to use |
I think this is the mentioned table: cpython/Tools/c-analyzer/cpython/_parser.py Lines 130 to 141 in d20bb33
Here |
Correct.
I considered that but didn't have time to try it out. I'd rather have that particular data stay in the current file if possible though. One alternative is to switch to csv. I don't recall that these specific tables need tsv. |
CC @AlexWaygood |
Currently Tools/patchcheck/reindent.py1 replaces all tabs with spaces. However, in Tools/c-analyzer/cpython._parser.py there are embedded tab-based tables. Up to now I've basically ignored CI failures (from
make patchcheck
) in _parser.py, but I'd rather reindent.py be a little smarter (even if just a whitelist). 2 Tools/scripts/untabify.py sounds like it may have a similar story.Footnotes
reindent.check()
is used by Tools/patchcheck/patchcheck.py (AKAmake patchcheck
). ↩Addressing trailing-tabs-in-str-literals is even more relevant since I enabled the check-c-globals CI check. For example, see https://github.com/python/cpython/pull/102735#issuecomment-1470516458. ↩
The text was updated successfully, but these errors were encountered: