Hacker News new | past | comments | ask | show | jobs | submit login

No 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

Not entirely clear what the reasons are for adding the Black dependency to IPython....




Because now IPython will automatically reformat you code while you type it with black ?

It should though fail gracefully if it can't import black.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: