Skip to content

Commit

Permalink
Change flake8 to only ignore D402 for specific methods
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Dec 13, 2019
1 parent 550cca1 commit b4226b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions satpy/scene.py
Expand Up @@ -1351,7 +1351,7 @@ def save_datasets(self, writer=None, filename=None, datasets=None, compute=True,
**kwargs)
return writer.save_datasets(datasets, compute=compute, **save_kwargs)

def compute(self, **kwargs):
def compute(self, **kwargs): # noqa: D402
"""Call `compute()` on all Scene datasets.
See :meth:`xarray.DataArray.compute` for more details.
Expand All @@ -1361,7 +1361,7 @@ def compute(self, **kwargs):
new_scn[k] = new_scn[k].compute(**kwargs)
return new_scn

def persist(self, **kwargs):
def persist(self, **kwargs): # noqa: D402
"""Call `persist()` on all Scene datasets.
See :meth:`xarray.DataArray.persist` for more details.
Expand All @@ -1371,7 +1371,7 @@ def persist(self, **kwargs):
new_scn[k] = new_scn[k].persist(**kwargs)
return new_scn

def chunk(self, **kwargs):
def chunk(self, **kwargs): # noqa: D402
"""Call `chunk()` on all Scene datasets.
See :meth:`xarray.DataArray.chunk` for more details.
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -13,6 +13,5 @@ universal=1

[flake8]
max-line-length = 120
ignore = D402
exclude =
satpy/readers/li_l2.py

0 comments on commit b4226b9

Please sign in to comment.