News for hackers. Stuff that matters.
Re:Python Is Eating the World by l0b0 on Monday August 12, 2019 @12:46AM (#20672499)
Re. linting, I'd highly recommend Black with whatever line length you want - it'll reliably reformat your code, and once you lose the urge to reformat while typing it's fantastic. It's like deleting a bunch of useless mental code. And the code reviews are even better: include a linting step (ideally with isort) in CI and you can avoid 95% of formatting comments.
Re:Python Is Eating the World by dgrant on Monday August 12, 2019 @01:03AM (#20672579)
100% this. I just switched to using Black recently and not having to ever fix a lint issue again has been life-changing. Use Black with pre-commit (https://pre-commit.com) and never look back.
Re:Python Is Eating the World by geewee on Monday August 12, 2019 @01:08AM (#20672601)
I've had some issues with black formatting some code differently depending on the OS it's run on. So perhaps almost reliably is more correct.
Re:Python Is Eating the World by konschubert on Monday August 12, 2019 @03:26AM (#20673241)
Make sure to run the same version of black.