4 ms·
OP here: Full disclosure, I've been working on that code today (unrelated to this blog post), and the formatting is mostly done through linters. (e.g. autopep8
by minimaxir 10y ago
OP here:
Full disclosure, I've been working on that code today (unrelated to this blog post), and the formatting is mostly done through linters. (e.g. autopep8, and abusing the Format Document button in VS Code)
There are still a few PEP8 violations which the linter doesn't fix (e.g. the 79 character width) and there are still a few things that need fixing. (after I commit my 4x speedup refactor, anyways)
Relevant VS Code settings:
"editor.rulers": [80],
"python.linting.pep8Enabled": true,
"python.formatting.provider": "autopep8",
"python.linting.pylintEnabled": false,
- johnwheeler 10y agoI like that you're not afraid to use space and how the comments stand out. My code is so dense, and now I'm tweaking it to look more like yours
- patrec 10y agoWrt 79 char limit, maybe try yapf? https://donjayamanne.github.io/pythonVSCodeDocs/docs/formatting/ https://donjayamanne.github.io/pythonVSCodeDocs/docs/formatt...