pbrod/Nvector

View on GitHub
src/nvector/_intro.py

Summary

Maintainability
A
0 mins
Test Coverage

Anomalous backslash in string: 'm'. String constant might be missing an r prefix.
Open

n_E is n-vector in the program code, while in documents we use :math:`\mathbf{n}^{E}`. 
Severity: Minor
Found in src/nvector/_intro.py by pylint

Used when a backslash is in a literal string but not as an escape.

Invalid escape sequence '\m'
Open

n_E is n-vector in the program code, while in documents we use :math:`\mathbf{n}^{E}`. 
Severity: Minor
Found in src/nvector/_intro.py by pep8

Invalid escape sequences are deprecated in Python 3.6.

Okay: regex = r'\.png$'
W605: regex = '\.png$'

Trailing whitespace
Open

reference frames can be found in the `documentation. 
Severity: Minor
Found in src/nvector/_intro.py by pep8

Trailing whitespace is superfluous.

The warning returned varies on whether the line itself is blank,
for easier filtering for those who want to indent their blank lines.

Okay: spam(1)\n#
W291: spam(1) \n#
W293: class Foo(object):\n    \n    bang = 12

Trailing whitespace
Open

Using n-vector, the calculations become simple and non-singular. 
Severity: Minor
Found in src/nvector/_intro.py by pep8

Trailing whitespace is superfluous.

The warning returned varies on whether the line itself is blank,
for easier filtering for those who want to indent their blank lines.

Okay: spam(1)\n#
W291: spam(1) \n#
W293: class Foo(object):\n    \n    bang = 12

Trailing whitespace
Open

n_E is n-vector in the program code, while in documents we use :math:`\mathbf{n}^{E}`. 
Severity: Minor
Found in src/nvector/_intro.py by pep8

Trailing whitespace is superfluous.

The warning returned varies on whether the line itself is blank,
for easier filtering for those who want to indent their blank lines.

Okay: spam(1)\n#
W291: spam(1) \n#
W293: class Foo(object):\n    \n    bang = 12

No newline at end of file
Open

"""
Severity: Minor
Found in src/nvector/_intro.py by pep8

Trailing blank lines are superfluous.

Okay: spam(1)
W391: spam(1)\n

However the last line should end with a new line (warning W292).

Line too long (1794 > 110 characters)
Open

"""
Severity: Minor
Found in src/nvector/_intro.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.

Final newline missing
Open

"""
Severity: Info
Found in src/nvector/_intro.py by pylint

Used when the last line in a file is missing a newline.

There are no issues that match your filters.

Category
Status