-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Test and fix trailing commas in many multiline string options in pyproject.toml
#18624
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
Conversation
This comment has been minimized.
This comment has been minimized.
I have no idea why this test fails on Win, I don't have an access to Win machine, so I just skipped this test on this OS.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I also don't have anything windows to test and know very little about it, but that's understandable:
I confess I don't know how to fix this properly in a cross-platform way, and neither I know why |
Ah, I probably know: could you try just moving this test to |
This comment has been minimized.
This comment has been minimized.
@sterliakov your idea worked, thank you! 🤝 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks! Do we need these many command line tests / can we combine them? Command line tests are very slow :-(
We can combine some of them. Will do! |
I combined several tests together. It made a 2.1s difference, which is great. Before:
After:
Some tests are impossible to combine, like ones using |
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Will wait for a day for extra reviews and going to merge this. Thanks a lot for your ideas and feedback ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played a little with your new try_split
function interactively but could not find a case where it failed. So, looks good to me. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, thanks!
Thanks everyone! 👏 |
…roject.toml` (python#18624) Refs python#18621 Closes python#18623 With a lot more tests.
Refs #18621
Closes #18623
With a lot more tests.