-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
flake8 passes #1925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flake8 passes #1925
Conversation
@@ -1,7 +1,7 @@ | |||
import xarray as xr | |||
import numpy as np | |||
import pandas as pd | |||
import seaborn as sns # pandas aware plotting library | |||
import seaborn as sns # pandas aware plotting library |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'seaborn as sns' imported but unused
@@ -27,7 +27,7 @@ | |||
|
|||
p = air.plot(transform=ccrs.PlateCarree(), # the data's projection | |||
col='time', col_wrap=1, # multiplot settings | |||
aspect=ds.dims['lon']/ds.dims['lat'], # for a sensible figsize | |||
aspect=ds.dims['lon'] / ds.dims['lat'], # for a sensible figsize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W1619 division w/o future statement
Huh. I wonder how this got past our new CI tests for flake8. |
It's v weird. If an ignore parameter is added, it generates the errors. This one on master:
Identical results if |
Ah - problem solved - it's that there are some default ignores. So on adding an ignore, those are then picked up again. |
@@ -6,3 +6,6 @@ python_files=test_*.py | |||
|
|||
[flake8] | |||
max-line-length=79 | |||
ignore=I002 | |||
exclude= | |||
doc/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this configuration to the .stickler.yml
file, too? That will help keep things in sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done
(though ideally @stickler-ci you should read from standard configs...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this didn't actually work to ignore the doc directories -- see all the Stickler messages in #1930
Thanks @maxim-lian |
I was still getting stickler errors for code I hadn't changed. Flake8 should now pass