[WIP] docstrings: automatically import pyunlocbox & numpy#23
[WIP] docstrings: automatically import pyunlocbox & numpy#23
Conversation
doesn't pass make lint with errors like F821 undefined name 'operators'
|
We should probably switch to black before spending time to make |
|
I think swichting to black is a good idea. |
|
Do you want me to give a shot at this? I would go with the following steps:
|
|
Note that here I do not import numpy but it does not complain: pyunlocbox/pyunlocbox/functions.py Line 880 in be4b6a2 |
Oh that is weird. Not only doesn't That issue won't be fixed by black. We have to somehow tell flake8 that |
|
I think of them as complementary: black formats the code, and flake8 checks (in CI) that it's ok. Black doesn't make checks right? But I'm all to have black. It'll save us review time. :) But in another PR (which could be done before this one if necessary). |
It makes for cleaner doctests, but it doesn't pass
make lintwith errors likeF821 undefined name 'operators'.