Open nabenabe0928 opened 3 years ago
Suggetions
^
| 40 lines are visible in one screen
|
class foo():
def func(self):
indent level 0 (normal)
indent level 1 (normal)
indent level 2 (can happen)
indent level 3 (much -> think about splitting the function)
indent level 4 (too much -> should be prohibited)
|
|
v
would you like to resolve this issue @nabenabe0928
Currently, comments complement the information what we are doing inside the code, but we can split these sections into functions. In fact, too long function typically violates flake8 C901. Also you can check why it is not good to write a long function here.
Currently, the code looks like this:
However, we can split like this (I do not think we need to split everything):