Commit ddc262f5 authored by Finn Heukamp's avatar Finn Heukamp

Ensure style conventions

parent 40d42723
Pipeline #10387 failed with stage
in 55 seconds
......@@ -201,4 +201,4 @@ def compare_sverdrup_transport(datasets, variables=("sverdrup_transport")):
for col, v in enumerate(variables):
ax[-1, col] = plot_time_mean_sverdrup_transport(diff, v, ax[-1, col])
return fig, ax
\ No newline at end of file
return fig, ax \n
\ No newline at end of file
  • Hi @ezra-eisbrenner, I added a bunch of functions for comparing plots of gridded data. However, there is a pep8 style convention issue I can't solve, the file does not pass pylint. The error message is 'No newline at end of file' but if I add a line break at the end of the file it still doesn't pass, the error message then is 'empty line at end of file'. Any idea what's the solution to this?

    Thanks, Finn

  • Hi @finn-heukamp,

    Try an empty last line (you had a blank line with white spaces once, that seems not to work).

    Or run black windeval/plotting.py which should take care of the issue too.

    As a side note, the \n character is the string representation of new lines, which in this case won't work since the code is not evaluated as string or strings.

    Best Ezra

  • You've got trailing whitespaces too:

     windeval/plotting.py:204:19: W291 trailing whitespace
     ERROR: Job failed: exit code 1

    this can be taken care of by most editors on save, or alternatively, again, using black on the file, i.e. black windeval/plotting.py.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment