maestro-server/discovery-api

View on GitHub
app/libs/decodeConn.py

Summary

Maintainability
A
0 mins
Test Coverage
F
44%

Line too long (92 > 79 characters)
Open

        task_notification.delay(msg=str(error), conn_id=conn_id, task=task, status='danger')
Severity: Minor
Found in app/libs/decodeConn.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Whitespace before ','
Open

            {'msg': str(error), 'name': error.__class__.__name__}
Severity: Minor
Found in app/libs/decodeConn.py by pep8

Avoid extraneous whitespace.

Avoid extraneous whitespace in these situations:
- Immediately inside parentheses, brackets or braces.
- Immediately before a comma, semicolon, or colon.

Okay: spam(ham[1], {eggs: 2})
E201: spam( ham[1], {eggs: 2})
E201: spam(ham[ 1], {eggs: 2})
E201: spam(ham[1], { eggs: 2})
E202: spam(ham[1], {eggs: 2} )
E202: spam(ham[1 ], {eggs: 2})
E202: spam(ham[1], {eggs: 2 })

E203: if x == 4: print x, y; x, y = y , x
E203: if x == 4: print x, y ; x, y = y, x
E203: if x == 4 : print x, y; x, y = y, x

There are no issues that match your filters.

Category
Status