animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.84k stars 314 forks source link

Resolve trivial code issues #196

Closed mklemarczyk closed 4 years ago

mklemarczyk commented 4 years ago

Resolve issues found by python lint: Before:

28    C901 'start_lab_session' is too complex (13)
4     E111 indentation is not a multiple of four
1     E114 indentation is not a multiple of four (comment)
1     E115 expected an indented block (comment)
3     E116 unexpected indentation (comment)
4     E117 over-indented
2     E122 continuation line missing indentation or outdented
4     E124 closing bracket does not match visual indentation
1     E125 continuation line with same indent as next logical line
24    E127 continuation line over-indented for visual indent
45    E128 continuation line under-indented for visual indent
8     E201 whitespace after '{'
10    E202 whitespace before '}'
1     E211 whitespace before '('
1     E221 multiple spaces before operator
3     E222 multiple spaces after operator
78    E225 missing whitespace around operator
343   E231 missing whitespace after ','
100   E251 unexpected spaces around keyword / parameter equals
38    E261 at least two spaces before inline comment
58    E262 inline comment should start with '# '
113   E265 block comment should start with '# '
50    E301 expected 1 blank line, found 0
84    E302 expected 2 blank lines, found 1
106   E303 too many blank lines (3)
2     E305 expected 2 blank lines after class or function definition, found 3
1     E401 multiple imports on one line
30    E501 line too long (139 > 127 characters)
2     E502 the backslash is redundant between brackets
55    E701 multiple statements on one line (colon)
6     E711 comparison to None should be 'if cond is None:'
21    E712 comparison to False should be 'if cond is False:' or 'if not cond:'
1     E713 test for membership should be 'not in'
9     E721 do not compare types, use 'isinstance()'
26    E722 do not use bare 'except'
3     E741 ambiguous variable name 'l'
22    F401 'pathlib.Path' imported but unused
40    F841 local variable 'scn' is assigned to but never used
1328

After:

28    C901 'start_lab_session' is too complex (13)
4     E111 indentation is not a multiple of four
1     E114 indentation is not a multiple of four (comment)
1     E115 expected an indented block (comment)
3     E116 unexpected indentation (comment)
3     E117 over-indented
1     E124 closing bracket does not match visual indentation
2     E125 continuation line with same indent as next logical line
4     E127 continuation line over-indented for visual indent
3     E222 multiple spaces after operator
5     E225 missing whitespace around operator
92    E231 missing whitespace after ':'
38    E251 unexpected spaces around keyword / parameter equals
36    E261 at least two spaces before inline comment
55    E262 inline comment should start with '# '
112   E265 block comment should start with '# '
50    E301 expected 1 blank line, found 0
84    E302 expected 2 blank lines, found 1
106   E303 too many blank lines (3)
2     E305 expected 2 blank lines after class or function definition, found 3
1     E401 multiple imports on one line
28    E501 line too long (139 > 127 characters)
2     E502 the backslash is redundant between brackets
34    E701 multiple statements on one line (colon)
1     E713 test for membership should be 'not in'
26    E722 do not use bare 'except'
3     E741 ambiguous variable name 'l'
22    F401 'pathlib.Path' imported but unused
40    F841 local variable 'scn' is assigned to but never used
787