3 ms·
Black in there as a linter - I’ve had hood experiences with that
by onphonenow 5y ago
Black in there as a linter - I’ve had hood experiences with that
- carreau 5y agoIt's actually already present in 7.x, just opt-in. And you should be able to hook any formatter you want, black just appear to be popular.
- cyode 5y agoWhat's a hood experience?
- carreau 5y agoIt's like when programmers put their black hoodies on to become hackers, and type so fast they swap G and H. Like you've seen Mr Robot ?
- onphonenow 5y agohaha . Too late for the edit unfortunately.
- danjac 5y agoNo problem with Black per se - it's my default linter - but latest inclusion with IPython 8.0 seems to break in a Docker environment: Generating grammar tables from /usr/local/lib/python3.10/site-packages/blib2to3/Grammar.txt Writing grammar tables to /root/.cache/black/21.12b0/Grammar3.10.1.final.0.pickle Writing failed: [Errno 2] No such file or directory: '/root/.cache/black/21.12b0/tmpx51kjom5' Generating grammar tables from /usr/local/lib/python3.10/site-packages/blib2to3/PatternGrammar.txt Writing grammar tables to /root/.cache/black/21.12b0/PatternGrammar3.10.1.final.0.pickle Writing failed: [Errno 2] No such file or directory: '/root/.cache/black/21.12b0/tmp80hsbuff I believe this is the issue: https://github.com/psf/black/issues/1143 https://github.com/psf/black/issues/1143 Not entirely clear what the reasons are for adding the Black dependency to IPython....
- carreau 5y agoBecause now IPython will automatically reformat you code while you type it with black ? It should though fail gracefully if it can't import black.