Skip to content

Commit 03224ee

Browse files
committed
lint
1 parent 77aa0f6 commit 03224ee

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

fsspec/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,7 @@ def _un_chain(path, kwargs):
358358
**kws,
359359
)
360360
bit = cls._strip_protocol(bit)
361-
if (
362-
"target_protocol" not in kw
363-
and issubclass(cls, CachingFileSystem)
364-
):
361+
if "target_protocol" not in kw and issubclass(cls, CachingFileSystem):
365362
bit = previous_bit
366363
out.append((bit, protocol, kw))
367364
previous_bit = bit

fsspec/implementations/tests/test_cached.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,9 @@ def test_multi_cache(protocol):
10311031
assert f.read() == b"hello"
10321032

10331033

1034-
@pytest.mark.parametrize("protocol", ["simplecache", "filecache", "blockcache", "cached"])
1034+
@pytest.mark.parametrize(
1035+
"protocol", ["simplecache", "filecache", "blockcache", "cached"]
1036+
)
10351037
def test_multi_cat(protocol, ftp_writable):
10361038
host, port, user, pw = ftp_writable
10371039
fs = FTPFileSystem(host, port, user, pw)
@@ -1064,7 +1066,9 @@ def test_multi_cache_chain(protocol):
10641066
assert files[0].read() == b"hello"
10651067

10661068

1067-
@pytest.mark.parametrize("protocol", ["blockcache", "cached", "simplecache", "filecache"])
1069+
@pytest.mark.parametrize(
1070+
"protocol", ["blockcache", "cached", "simplecache", "filecache"]
1071+
)
10681072
def test_strip(protocol):
10691073
fs = fsspec.filesystem(protocol, target_protocol="memory")
10701074
url1 = "memory://afile"
@@ -1235,7 +1239,9 @@ def test_cache_dir_auto_deleted(temp_cache, tmpdir):
12351239
assert local.exists(cache_dir)
12361240

12371241

1238-
@pytest.mark.parametrize("protocol", ["filecache", "blockcache", "cached", "simplecache"])
1242+
@pytest.mark.parametrize(
1243+
"protocol", ["filecache", "blockcache", "cached", "simplecache"]
1244+
)
12391245
def test_cache_size(tmpdir, protocol):
12401246
if win and protocol in {"blockcache", "cached"}:
12411247
pytest.skip("Windows file locking affects blockcache size tests")

0 commit comments

Comments
 (0)