Skip to content

Commit 216885a

Browse files
pre-commit autoupdate (#1774)
1 parent 30af5e1 commit 216885a

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-yaml
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
1616
# Ruff version.
17-
rev: v0.6.9
17+
rev: v0.9.2
1818
hooks:
1919
# Run the linter.
2020
- id: ruff

fsspec/implementations/dbfs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ def __init__(
412412
if block_size is None or block_size == "default":
413413
block_size = self.DEFAULT_BLOCK_SIZE
414414

415-
assert (
416-
block_size == self.DEFAULT_BLOCK_SIZE
417-
), f"Only the default block size is allowed, not {block_size}"
415+
assert block_size == self.DEFAULT_BLOCK_SIZE, (
416+
f"Only the default block size is allowed, not {block_size}"
417+
)
418418

419419
super().__init__(
420420
fs,

fsspec/implementations/tests/test_tar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_filesystem_direct(recipe, tmpdir):
9797
Here: `LocalFileSystem`.
9898
"""
9999

100-
filename = os.path.join(tmpdir, f'temp{recipe["suffix"]}')
100+
filename = os.path.join(tmpdir, f"temp{recipe['suffix']}")
101101

102102
fs = fsspec.filesystem("file")
103103
f = OpenFile(fs, filename, mode="wb")
@@ -132,7 +132,7 @@ def test_filesystem_cached(recipe, tmpdir):
132132
Here: `TarFileSystem` over `WholeFileCacheFileSystem` over `LocalFileSystem`.
133133
"""
134134

135-
filename = os.path.join(tmpdir, f'temp{recipe["suffix"]}')
135+
filename = os.path.join(tmpdir, f"temp{recipe['suffix']}")
136136

137137
# Create a filesystem from test fixture.
138138
fs = fsspec.filesystem("file")

fsspec/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ def register_implementation(name, cls, clobber=False, errtxt=None):
218218
"zip": {"class": "fsspec.implementations.zip.ZipFileSystem"},
219219
}
220220

221-
assert list(known_implementations) == sorted(
222-
known_implementations
223-
), "Not in alphabetical order"
221+
assert list(known_implementations) == sorted(known_implementations), (
222+
"Not in alphabetical order"
223+
)
224224

225225

226226
def get_filesystem_class(protocol):

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ ignore = [
215215
"UP011",
216216
"UP015",
217217
"UP018",
218-
# deprecated
219-
"UP027",
220218
"SIM102",
221219
"SIM105",
222220
"SIM108",
@@ -238,8 +236,6 @@ ignore = [
238236
"Q003",
239237
"COM812",
240238
"COM819",
241-
"ISC001",
242-
"ISC002",
243239
]
244240

245241
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)