src/numdifftools/license.py
No newline at end of file Open
Open
""".format(CURRENT_YEAR)
- 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).
Formatting a regular string which could be a f-string Open
Open
__doc__ = """
- Read upRead up
- Exclude checks
Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6
.
Missing module docstring Open
Open
from datetime import datetime
- Read upRead up
- Exclude checks
Used when a module has no docstring. Empty modules do not require a docstring.
Final newline missing Open
Open
""".format(CURRENT_YEAR)
- Read upRead up
- Exclude checks
Used when the last line in a file is missing a newline.