Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Oct 24, 2018
1 parent ee44de5 commit b7da5e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
9 changes: 4 additions & 5 deletions dask/tests/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from dask.delayed import Delayed
from dask.utils import tmpdir
from distributed.client import wait, Client
from distributed.utils_test import gen_cluster, inc, cluster, loop # flake8: noqa
from distributed.utils_test import gen_cluster, inc, cluster, loop # noqa F401


if 'should_check_state' in inspect.getargspec(gen_cluster).args:
Expand Down Expand Up @@ -103,12 +103,11 @@ def test_local_get_with_distributed_active(c, s, a, b):
yield gen.sleep(0.01)
assert not s.tasks # scheduler hasn't done anything

y = delayed(inc)(2).persist(scheduler='sync')
x = delayed(inc)(2).persist(scheduler='sync') # noqa F841
yield gen.sleep(0.01)
assert not s.tasks # scheduler hasn't done anything



def test_to_hdf_distributed(loop):
from ..dataframe.io.tests.test_hdf import test_to_hdf
with cluster() as (s, [a, b]):
Expand Down Expand Up @@ -153,10 +152,10 @@ def test_futures_in_graph(loop):

def test_zarr_distributed_roundtrip(loop):
da = pytest.importorskip('dask.array')
zarr = pytest.importorskip('zarr')
pytest.importorskip('zarr')
assert_eq = da.utils.assert_eq
with cluster() as (s, [a, b]):
with Client(s['address'], loop=loop) as c:
with Client(s['address'], loop=loop):
with tmpdir() as d:
a = da.zeros((3, 3), chunks=(1, 1))
a.to_zarr(d)
Expand Down
24 changes: 9 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
# Note: there cannot be spaces after comma's here
exclude = __init__.py
ignore =
# Extra space in brackets
E20,
# Multiple spaces around ","
E231,E241,
# Comments
E26,
# Import formatting
E4,
# Comparing types instead of isinstance
E721,
# Assigning lambda expression
E731,
# Ambiguous variable names
E741,
W504, # line break after binary operator
E20, # Extra space in brackets
E231,E241, # Multiple spaces around ","
E26, # Comments
E4, # Import formatting
E721, # Comparing types instead of isinstance
E731, # Assigning lambda expression
E741, # Ambiguous variable names
W504, # line break after binary operator
F811, # redefinition of unused 'loop' from line 10
max-line-length = 120

[versioneer]
Expand Down

0 comments on commit b7da5e7

Please sign in to comment.