Overall I love that BUILD files are now linted wit...
# general
c
Overall I love that BUILD files are now linted with Black but I do kind of wish that it somehow favoured newlines more than it does.
Copy code
pex_binary(name="manage", entry_point="manage.py", dependencies=["src/mysite:mysite", "src/polls:polls"], restartable=True)

VS

pex_binary(
    name="manage", 
    entry_point="manage.py",
    dependencies=[
        "src/mysite:mysite", 
        "src/polls:polls"
    ],
    restartable=True
)
I much prefer the second one - it makes diffs so much more readable. Guessing this is configurable if I look for the option but maybe we want to override the defaults on Black for this use case out of the box?
h
you can force newlines by adding trailing commas! Try rerunning where you put
,
after
restartable
c
Oh nice - TIL. Thank you! 🙏🙏
❤️ 1
h
You'd think Black would be configurable but it's mostly not
It is very opinionated
b
This looks like a killer tip for the docs. Maybe even have Tailor comment about it?
h
We haven't documented
update-build-files
at all yet. That's something I'll be adding as part of the 2.8 release blog work
👍 2