4 ms·
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 typ
by l0b0 7y ago
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.
- dgrant 7y ago100% 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 https://pre-commit.com) and never look back.
- geewee 7y agoI'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.
- konschubert 7y agoMake sure to run the same version of black.