Open bollwyvl opened 2 weeks ago
Yeah I'm pretty indifferent on this one. If you want to make the change, do feel free.
OTOH a few fmt: off/on
lines and some noqa
s to ignore line lengths would probably fix the readability without generally opaque (to me) test fixtures and ways to generate tests in pytest
.
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: