Fix flake8 warnings and errors

Does someone know how I can reduce length of lines such as this one?
Is it possible to split sphinx references on 2 lines?