-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
add comment stripping from config file (issue #332) #529
Conversation
it may be sensible to upstream this into https://github.com/RonnyPfannschmidt/iniconfig as well (i plan to de-vendor it from pylib) |
@RonnyPfannschmidt Hello, what exactly would you want me to do? |
I don't get around reviewing and testing this, as I have a lot of other things on my plate. I just skimmed the changes and do not have a good feeling, when I see all the regexes :) - so any takers? |
@sifuraz could you simplify the regexes or get rid of them if you just implement "comment stripping works by removing "#" and things right of it if that "#" sign is preceded by whitespace or a line beginning. This way URLs with hashparts would still work. if i see your tests i think the suggested "comment stripping" rule would already work. And it should be part of the docs. |
I have some concerns regarding this proposal:
My 50 cents on the topic:
|
Thank you @sifuraz for your work, but I would propose to close this as wontfix. I have no trust that we can implement this reliably without causing maintenance nightmares down the road. If you want to avoid work on PRs that might not get merged, make sure to open an issue first if there is none yet and discuss if this would be integrated (or start a discussion on tox-dev mailing list). In this case we even had an issue about this that was already marked as wontfix: #50 I rather like the idea of @vlaci - introducing another configuration file format in the future as I feel that we have driven the extension of the tox specific ini format quite far already (just had to suffer through that at the weekend fixing #595). |
P.S. created #600 to discuss that (one can dream, can't one?). |
@sifuraz I feel quite horrible about this, as I actually was the one who encouraged to pick that up, having completely forgotten about the closed dupe ... sorry again! |
@obestwalter Don't worry about it 😉 |
Comments will now be stripped while parsing config file.