-
Notifications
You must be signed in to change notification settings - Fork 75
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
Move most URL transform tests to text-based files #2797
Comments
Yeah I'm pretty indifferent on this one. If you want to make the change, do feel free. OTOH a few |
In other words, black + ruff are wrong in some cases and maybe we should just tell them that rather than making more complicated code. |
Sure, an alternative would be: lines = {*"""
https://...
""".splitlines().map(lambda x: x.strip())} i don't think the linters care about big-ol-triple-quote-strings. |
Something like this appears to appease the linters (haven't run): https://gist.github.com/bollwyvl/8c1c5792727c72f4d36bc41e85e6650f |
Sure. I don't find the current code so bad that it warrants cleanup but do feel free to do so. |
references
motivation
The hardcoded inline fixtures are long, and the tricks required to appease
black
(split strings, magic comments) don't help readability.design ideas
Add a
conftest.py
fixture:Use:
With:
Where:
The text was updated successfully, but these errors were encountered: