app/libs/template/symbol.py
Function ellipse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ellipse(self, cx, cy, rx, ry, class_):
Missing whitespace after ',' Open
Open
return self.dwg.ellipse(center=(cx,cy), r=(rx, ry), **opts)
- Read upRead up
- Exclude checks
Each comma, semicolon or colon should be followed by whitespace.
Okay: [a, b]
Okay: (3,)
Okay: a[1:4]
Okay: a[:4]
Okay: a[1:]
Okay: a[1:4:2]
E231: ['a','b']
E231: foo(bar,baz)
E231: [{'a':'b'}]
No newline at end of file Open
Open
return flt
- Read upRead up
- Exclude checks
Trailing blank lines are superfluous.
Okay: spam(1)
W391: spam(1)\n
However the last line should end with a new line (warning W292).